Autotraino :truck:
:warning: Warning, alpha version, everything brakes. :warning:
autotraino is a small wrapper library for AutoML on tabular datasets.
from autotraino.gluon import AutogluonTrainer
from datasets import load_dataset
train = load_dataset("mstz/adult", "income")["train"].to_pandas()
# train the model
trainer = AutogluonTrainer()
trainer = trainer.fit(train, target_feature="over_threshold", time_limit=100)
When fitting we can control basic parameters such as where to store the resulting models
(parameter save_path of the trainer constructor) or the time budget assigned to the trainer (parameter
time_limit, expressed in seconds).
Once trained, we can access the single models
# trained models
print(trainer.names)
print(trainer["LightGBM"])
and predict directly from the Trainer itself:
train_x = train.copy().drop("over_threshold", axis="columns")
predictions = trainer.predict(train_x, with_models=["LightGBM", "RandomForest"])
Quickstart
You can install autotraino via test-pypi:
# optional
mkvirtualenv -p python3.10 autotraino
pip install --extra-index-url https://test.pypi.org/simple/autotraino
Datasets
autotraino is based off pandas.DataFrames.
You can find a large collection on a Huggingface repository I'm curating at huggingface.co/mstz.
Datasets are sourced from UCI, Kaggle, and OpenML.
Most are still to be updated (especially dataset cards).
What model families to train?
Currently based on Autogluon, autotraino currently trains the following models:
- Boosting models
- LightGBM
- CatBoost
- Bagging models
- Random Forest
- ExtraTree Classifier
- Neural Network
- FastAI
- NNTorch
- Classical AI models
- k-NN
- Logistic Regression
Preprocessing
autotraino automatically detects feature types and performs the necessary feature preprocessing per model.
To ease the process, consider setting the appropriate dtypes in the input pandas.DataFrame.
In the works
Future developments include:
- Fitting arbitrary functions (ray tune)
- Fitting multi-output models.
Metadata
Release files for autotraino 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| autotraino-0.1.0.tar.gz | 37.9 kB | Without provenance | Details for autotraino-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| autotraino-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for autotraino-0.1.0-py3-none-any.whl |
Total release size: 75.3 kB
Release files / autotraino-0.1.0.tar.gz
| Download URL | autotraino-0.1.0.tar.gz |
|---|---|
| Size | 37.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c40946e813a07ac5f516dfeb848f77b2fb24e283f29de1c2419ee01a9a2008d1
|
|
BLAKE2b-256 checksum How to use checksums |
281074754a18d4262a2f015e77cc6a0d386cbadd6a84a6b9407904a85c6bf5d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / autotraino-0.1.0-py3-none-any.whl
| Download URL | autotraino-0.1.0-py3-none-any.whl |
|---|---|
| Size | 37.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fabede2444b57cca07879952ac2f1ab6ad06dc0adb35f39de5c80e1b98b6c0eb
|
|
BLAKE2b-256 checksum How to use checksums |
00a69368afe89baf720250bd539fade605c7d1b2b9393c2d94a189d5b3774bf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for autotraino 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.