Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

Data Alchemy

Public โ€ข 22.6k โ€ข Free

19 contributions to Data Alchemy
Vercel V0-AI - AI Code assistant specialized for NextJS applications
It is no mistery that most Data Scientist are lacking Front End Development skills. I personally use ChatGPT or Copilot to improvise some UI. I will let you imagine the final quality of that work... The problem is that most models are not updated and do not know how to work with NextJS app router. Solution: Use a specialized model by Vercel for Vercel App development. https://v0.dev/chat/ ``` As an advanced AI coding assistant created by Vercel, I have several key functionalities: 1. Code Generation: I can create React components, Node.js scripts, and other code snippets tailored to your needs. I specialize in modern web development, with a focus on React, Next.js (particularly the App Router), and other cutting-edge technologies. 2. UI Design: I can help design and implement user interfaces using React components, often utilizing the shadcn/ui library and Tailwind CSS for styling. 3. Problem Solving: I can assist with coding challenges, algorithm implementation, and debugging issues in your code. 4. Explanations and Tutorials: I can provide detailed explanations of coding concepts, best practices, and walk you through complex topics step-by-step. 5. Image Processing: I can analyze and provide information based on images that you upload as attachments. 6. Diagramming: I can create diagrams using Mermaid syntax to illustrate concepts, workflows, or system architectures. 7. Interactive Demonstrations: For certain types of code (particularly JavaScript), I can provide executable examples that you can run directly in the interface. 8. Accessibility Considerations: When creating UI components, I always strive to implement accessibility best practices. 9. Responsive Design: I ensure that the UI components I create are responsive and work well across different device sizes. ``` This changes everything! Except it doesn't... but it`s a nice help :D
8
4
New comment Sep 2
Vercel V0-AI  - AI Code assistant specialized for NextJS applications
2 likes โ€ข Sep 2
Hi @Serkorman Serk, it is a topic that requires a bit more than a comment ๐Ÿ˜… However, there are different ways i could suggest at a high level considering pros and cons: Flask Nextjs template: https://vercel.com/templates/next.js/nextjs-flask-starter The pro is that you manage one single block of code The cons is the absence of MLOps, meaning that i - if your model changes you have to deploy again the whole application - there is no versioning of the model - issues with monolithic architecture Any cloud provider with services like Google Cloud Function/Cloud Run: The pro is that you have the perfect trade-off between having a free solution and a scalable one. You call on every platform the model using a POST request and Google calls your model. For example, you can have a NextJS application or a Streamlit application and call your model without the need for any configuration. You could also use telegram to make a bot out of it ๐Ÿ˜‰ VertexAI: Do not do it unless you have money or have a unicorn startup that needs high fast performance ๐Ÿ˜…
Modern MLOps Pipelines with Feature Store
I post this article because i think they did a very good job in describing why MLOps is complicated and what a real production pipeline for machine learning and AI should look like. The creation of features and their versioning is a lot of work and it should be open to integration in more model experiments and applications. On the other hand, we are always pushed to try new tools that create over-engineered systems that no one wants to use. https://www.hopsworks.ai/post/mlops-to-ml-systems-with-fti-pipelines
4
2
New comment Aug 15
Modern MLOps Pipelines with Feature Store
Pre-Commit is a necessary evil
Pre-commit hooks are automated scripts or checks that run before you commit your code to a version control system (VCS) like Git. They force you and your collaborators to write clean and consistent code. Reference: https://pre-commit.com/ To set up pre-commit you first need to have Git installed and run on your Python console the usual: pip install pre-commit Once installed, place in your root a file named .pre-commit-config.yaml and fill it with a collection of 'hooks'. ```yaml - repo: https://github.com/pre-commit/mirrors-black rev: stable hooks: - id: black ```yaml The hooks are the scripts responsible for the checks, there are many and way more evil than this. Have fun and let everyone know how frustrating is to work with you๐Ÿซก https://pre-commit.com/hooks.html
5
6
New comment Aug 5
Pre-Commit is a necessary evil
0 likes โ€ข Aug 5
@Kevin M Sure it does :) I think the only downside is to actually use it. Just like testing and documentation, the best practices are cool until we actually have to use them ๐Ÿ˜ In a team i think is a great way to avoid chaos.
0 likes โ€ข Aug 5
@Samantha Atkins I have personally gone close to failing a project because the tech debt was immense, so i cannot support this ๐Ÿ˜… Back in the day, i did not even know commits have their own tags! - feat โ€“ a new feature is introduced with the changes - fix โ€“ a bug fix has occurred - chore โ€“ changes that do not relate to a fix or feature and don't modify src or test files (for example updating dependencies) - refactor โ€“ refactored code that neither fixes a bug nor adds a feature - docs โ€“ updates to documentation such as a the README or other markdown files - style โ€“ changes that do not affect the meaning of the code, likely related to code formatting such as white-space, missing semi-colons, and so on. - test โ€“ including new or correcting previous tests - perf โ€“ performance improvements - ci โ€“ continuous integration related - build โ€“ changes that affect the build system or external dependencies - revert โ€“ reverts a previous commit I think we should at least be aware these things exist and then decide if it is worth introducing complexity. AI will replace me anyway, so I might as well enjoy being toxic at work๐Ÿ˜‚
Streamlit Template for complex MVP
TL;DR - Streamlit can be organized like a NextJS web app that scales - Object Oriented Programming makes your UI 'S.O.L.I.D.' - Use Loguru Logging - Template to start with API, Layout and Modular Components Link: https://github.com/DataDavidProjects/streamlit-starter Streamlit is a good choice whenever you want to experiment before committing to the Typescript madness. However, poor folder organization will make your app a disaster. When the app becomes complex, you need to organize your code carefully. A nice trick is to build your web app just like NextJS. Organize and build components into a Layout that is shared across all the pages and enjoy a dynamic web app without the struggle of multiple pages. Create a UI main class, that inherits from multiple classes: - Header - Main - Footer - Sidebar - API This approach is based on the Multilevel and Multiple Inheritance of classes in OOP. Having multiple classes will allow you to manage your code and extend your UI. To handle the different logic and do not get lost, use loguru. is a very cool library for python that helps you deal with logs ( better than print statements ) I have created a small template to start my new projects, inspired by the cookie-cutter concept. I will update it in the future and every feedback is welcome :)
9
6
New comment Aug 5
0 likes โ€ข Aug 5
@Kevin M You have no idea of how much i understand you ๐Ÿ˜‚ That is why i have written this other post to handle with fragments a modular approach and avoid a full re-run of the app. https://www.skool.com/data-alchemy/experimental-fragment-for-faster-reload-in-streamlit?p=f7ba9fea Streamlit is a POC framework, so we have to accept the limitations and appreciate its versatile boilerplate style.
Logging save lives
TL;DR: - My code is bad, your doesn't have to be - Logging vs Printing - Loguru Loguru is an easy-to-understand library for Python that allows your code to have meaningful execution reports. It was presented to me by some colleagues and i have loved it since. I have the bad habit of over-engineer my class and i easily get lost in the execution flow. DO NOT BE ME! Create small interfaces, separate data classes from behavioural classes and create modular blocks one step at a time. Print is fine, but once you go on production you realize that the print statement is insufficient. Logging support levels help you understand where your code is going. Levels can also be filtered based on gravity! Loguru is a saviour tool https://loguru.readthedocs.io/en/stable/index.html and it allowed me to create nice logs and save them into a log file with simple commands.
8
3
New comment Jul 29
Logging save lives
1-10 of 19
@davide-lupis-8178
Data Scientist crafting the art of side hustles and full stack development

Active 2d ago
Joined Oct 1, 2023
ENFJ
powered by