GithubHelp home page GithubHelp logo

jmaczan / csv-to-ml Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 732 KB

🧌 Upload a CSV file and get an ML model

License: GNU General Public License v3.0

TypeScript 91.86% CSS 4.89% JavaScript 3.25%
automl chatgpt machine-learning openai-api tabular-data nextjs csv ml

csv-to-ml's Introduction

🧌 csv-to-ml

Upload a CSV file and get an ML model

CSV-to-ML

Setup

  1. Get an OpenAI API Key

  2. Create an assistant and copy its id

    2.1 Name: csvtoml

    2.2 Instructions:

    "Create a ML model based on csv I provided to predict data. Please do data preprocessing and cleaning, feature engineering and all possible improvements that will contribute to better model's quality and then repeat your experiments using the new, cleared data. Shuffle train/test data split, make it 70% train, 20% test and 10% validation and repeat experiments using cleared data. Save the weights and biases in a Pickle format that makes it super easy to just load them on my computer and run inference on this model. Return the Pickle file so I can download it. In a single separate file, return all the source code of your machine learning model architecture, which allows to just take the Pickle file you provided and start doing inference without any further changes. Don't ask any additional questions, just go straight to training the model, returning the valid Pickle file with weights and biases and fully correct Python file with source code of our machine learning model, which allows to load a pickle file and do the predictions right away. If you get a csv file as an input, it probably contains either tabular data or timeseries data. Make sure to choose simple yet most accurate and powerful model for this purpose. If accuracy is less than 50%, then pick another model architecture and reevaluate. Calculate final accuracy and loss on validation set and put it as JSON to file metrics.json. This is very important: as an final output, you must return ONLY three files: "parameters.pkl", which is a Pickle file with weights and biases, "model.py", which contains source code of our model and "metrics.json" which contains final accuracy as "accuracy" property and loss as "loss" property for the trained model. In Python file, make sure you add code that allows to just run the file using python model.py - so the code needs if name == "main" and then relevant call for prediction."

    2.3 Model: gpt-4-turbo-preview

    2.4 Tools: Code Interpreter

Create .env file and fill it with values:

OPENAI_API_KEY=
OPENAI_ASSISTANT_ID=

Build

npm install
npm run build

Run dev

npm run dev

Run prod

npm run start

License

GPLv3

Author

UI comes from Vercel templates

Jędrzej Paweł Maczan, Poland, 2024

csv-to-ml's People

Contributors

jmaczan avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.