Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jmaczan/text-to-ml

Homebrew AutoML using natural text. Like HuggingGPT + LangChain + type inference
https://github.com/jmaczan/text-to-ml

automl deep-learning huggingface hugginggpt machine-learning python

Last synced: 2 months ago
JSON representation

Homebrew AutoML using natural text. Like HuggingGPT + LangChain + type inference

Awesome Lists containing this project

README

        

# 🎮 text-to-ml

> đź’ś PagedOut #4 Issue ["Building automated machine learning with type inference"](https://pagedout.institute/download/PagedOut_004_beta1.pdf#page=4)

Run AutoML using natural text. Like HuggingGPT + LangChain + type inference

> 🏭 A breakdown of what is going on in code you can read on my blog: [maczan.pl](https://maczan.pl/p/lets-build-text-to-ml-an-automl-library)

It picks a right model from Hugging Face library based on user natural language query and then runs the model and parses the output to a type, inferred from the query

Text-to-ML

> ⚡ You can run this code in [Lightning AI Studio template](https://lightning.ai/jed/studios/build-your-own-automl-using-hugging-face-inference-client-and-openai-api)



Open In Studio

It's still an early project and **you are welcome to contribute**!

## Setup

1. Get OpenAI API Key
2. Get Hugging Face API Key
3. Create an assistant and copy its id
4. Create `.env` file and fill it with values:

```
OPENAI_API_KEY=
HF_TOKEN=
```

## Build

```sh
conda create -n text-to-ml python=3.9
conda activate text-to-ml
conda install --file requirements.txt
```

## Run

```
python app.py
```

## Run experiments

```
python experiments.py
```

## Cite
If you use this software in your research, please use the following citation:

```bibtex
@misc{Maczan_TextToML_2024,
title = "Programmable automated machine learning - proof of concept",
author = "{Maczan, Jędrzej Paweł}",
howpublished = "\url{https://github.com/jmaczan/text-to-ml}",
year = 2024,
publisher = {GitHub}
}
```

## License

GPLv3

## Author

Jędrzej Paweł Maczan, Poland, 2024