AutonML : CMU's AutoML System
Project description
CMU TA2 (Built using DARPA D3M ecosystem)
Auton ML is an automated machine learning system developed by CMU Auton Lab to power data scientists with efficient model discovery and advanced data analytics. Auton ML also powers the D3M Subject Matter Expert (SME) User Interfaces such as Two Ravens http://2ra.vn/.
Taking your machine learning capacity to the nth power.
We provide a documentation listing the complete set of tasks, data modalities, machine learning models and future supported tasks provided by AutonML here.
Installation
AutonML can be installed as: pip install autonml
. We recommend this installation be done in a new virtual environment or conda environment.
Recommended steps to install autonml
:
pip install autonml
pip install d3m-common-primitives d3m-sklearn-wrap sri-d3m rpi-d3m-primitives dsbox-primitives dsbox-corex distil-primitives d3m-esrnn d3m-nbeats
pip install kf-d3m-primitives
This installation may take time to complete, owing to the fact that pip's dependecy resolvers may take time resolving potential package conflicts. To make installation faster, you can add pip's legacy resolver as --use-deprecated=legacy-resolver
. Caution: using old resolvers may present unresolved package conflicts.
D3M dataset
- Any dataset to be used should be in D3M dataset format (directory structure with TRAIN, TEST folders and underlying .json files).
- Example available of a single dataset here
- More datasets available here
- Any non-D3M data can be converted to D3M dataset. (See section below on "Convert raw dataset to D3M dataset").
Run the AutonML pipeline
We can run the AutonML pipeline in two ways. It can be run as a standalone CLI command, accessed via the autonml_main
command. This command takes five arguments, listed below:
- Path to the data directory (must be in D3M format)
- Output directory where results are to be stored. This directory will be dynamically created if it does not exist.
- Timeout (measured in minutes)
- Number of CPUs to be used (minimum: 4 cores, recommended: 8 cores)
- Path to
problemDoc.json
(see example below)
INPUT_DIR=/home/<user>/d3m/datasets/185_baseball_MIN_METADATA
OUTPUT_DIR=/output
TIMEOUT=2
NUMCPUS=8
PROBLEMPATH=${INPUT_DIR}/TRAIN/problem_TRAIN/problemDoc.json
autonml_main ${INPUT_DIR} ${OUTPUT_DIR} ${TIMEOUT} ${NUMCPUS} ${PROBLEMPATH}
The above script will do the following-
- Run search for best pipelines for the specified dataset using TRAIN data.
- JSON pipelines (with ranks) will be output in JSON format at /output/<search_dir>/pipelines_ranked/
- CSV prediction files of the pipelines trained on TRAIN data and predicted on TEST data will be available at /output/<search_dir>/predictions/
- Training data predictions (cross-validated mostly) are produced in the current directory as /output/<search_dir>/training_predictions/<pipeline_id>_train_predictions.csv.
- Python code equivalent of executing a JSON pipeline on a dataset produced at /output/<search_dir>/executables/
An example -
OUTPUT_DIR=output
python ${OUTPUT_DIR}/99211bc3-638a-455b-8d48-0dadc0bf1f10/executables/19908fd3-706a-48da-b13c-dc13da0ed3cc.code.py ${OUTPUT_DIR}/ ${OUTPUT_DIR}/99211bc3-638a-455b-8d48-0dadc0bf1f10/predictions/19908fd3-706a-48da-b13c-dc13da0ed3cc.predictions.csv
You can find example notebooks for various supported datasets here.
Convert raw dataset to D3M dataset
D3M dataset
- Any dataset to be used should be in D3M dataset format (directory structure with TRAIN, TEST folders and underlying .json files).
- Example available of a single dataset here
- More datasets available here
- Any non-D3M data can be converted to D3M dataset. (See section below on "Convert raw dataset to D3M dataset").
Convert raw dataset to D3M dataset
If not done already, run pip install autonml
before our raw dataset converter.
create_d3m_dataset <train_data.csv> <test_data.csv> <label> <metric> -t classification <-t ...>
Detailed description of dataset type(s), task type(s) and metrics provided here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file autonml-0.2.5.tar.gz
.
File metadata
- Download URL: autonml-0.2.5.tar.gz
- Upload date:
- Size: 95.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 274f50974a6d4ea63ccd4bc6d1e7132fcf2b30807c98b2e5ccfa54e12f965df1 |
|
MD5 | c8d58bb0a5cf64c3b7fd274a7905dc9d |
|
BLAKE2b-256 | 95fccd50f969eaeec5ac1ac965648139641dfeac7fb6d6e208139bdc94f92d45 |
File details
Details for the file autonml-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: autonml-0.2.5-py3-none-any.whl
- Upload date:
- Size: 92.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73d13186da55bd5f8bbbca6ae3b9b0e70ecd4bb7a6eb9320471fe123daa95db4 |
|
MD5 | 5b17c34f2219e8cb3c80359ad68cb0b1 |
|
BLAKE2b-256 | 35674c689fa01eeed685bca5531cac392ea9556229d10f7947b910614f1daae2 |