7,520 karma · joined March 9, 2016
https://mljar.com
https://github.com/mljar/mercury
https://github.com/mljar/mljar-supervised
https://runmercury.com
meet.hn/city/pl-Łapy
Is it possible to write Python package that based on YAML specification produces Python API? User will code in Python and YAML will be the output.
I was working on YAML syntax for creating UI. I converted it to Python API and Im happy. For exmple, dynamic widgets in YAML were hard, in Python they are strightforward.
Such terminal tools are quite like AI agents, it should think about steps and then execute one by one.
Do you have option to manually provide text that will be used as LLM memory?
```
You are home assistant. Here is information what's going on in the house:
It's 4PM. Bob likes Chopin Fantaisie-Impromptu. Alice likes Mozart Rondo in D. Bob is in the house. Alice will be back from office at 5PM.
You get a prompt: I'm tired, play my favorite
```
For the above input any LLM will play Chopin.
It would be also cool to have such plugin for Google Colab.
I hope someone will come with a new way to interact with LLM models other than chat UI. It would make code writing even more faster.
papers:
1. ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs https://arxiv.org/abs/2307.16789
2. Gorilla: Large Language Model Connected with Massive APIs https://arxiv.org/abs/2305.15334
And it looks you are from Białystok - greetings from Łapy!
1. Any chance to make it open-source?
2. Is there an option to build animation of how code is written? Export code animation as GIF?
Are you building some public service that heavily relay on OpenAI API?
I was also thinking about deeper notebook and LLM integration for linear scripts.
I was very surprised with Australia example! The LLM has access to only first 5 rows of the DataFrame and Australia is not there. The LLM was able to produce the correct code, that genralizes well on full DataFrame.
The idea:
1. User provides input DataFrame and prompt.
2. The PlotAI constructs a prompt for LLM, which contains the first 5 rows of DataFrame and the user's prompt and asks for Python code as output.
3. Returned Python code is executed, and the plot is displayed.
The simplest possible API for plotting:
# import packages
import pandas as pd
from plotai import PlotAI
# create some data
df = pd.DataFrame({"x":[1,2,3], "y": [4,5,6]})
# do a plot
plot = PlotAI(df)
plot.make("scatter plot")
The PlotAI class has only one method, make().It works in Python scripts and in notebooks (Jupyter, Colab, VS Code).
I think most of overfitting is avoided with early stoppoing technique.
The underfitting can be avoidwd with using large training time.