This guide will help you get started with MLCLI in just a few minutes.
- Python 3.10 or higher
- pip package manager
pip install mlcli-toolkitgit clone https://github.com/codeMaestro78/mlcli.git
cd mlcli
pip install -e .mlcli --version
mlcli --helpCreate a CSV file with your data. MLCLI expects:
- Features in columns
- Target variable in one column
- No missing values (or handle them in preprocessing)
Example data/sample.csv:
feature1,feature2,feature3,target
1.2,3.4,5.6,0
2.3,4.5,6.7,1
...Create configs/my_config.json:
{
"dataset": {
"path": "data/sample.csv",
"type": "csv",
"target_column": "target"
},
"model": {
"type": "random_forest",
"params": {
"n_estimators": 100,
"max_depth": 10,
"random_state": 42
}
},
"training": {
"test_size": 0.2,
"random_state": 42
},
"output": {
"model_dir": "models",
"save_format": ["pickle", "onnx"]
}
}mlcli train --config configs/my_config.jsonmlcli evaluate --model models/rf_model.pkl --data data/test.csv --target targetmlcli predict --model models/rf_model.pkl --data data/new_data.csv --output predictions.csvFor a guided experience, use the Terminal UI:
mlcli uiNavigate using arrow keys and Enter to select options.
# General help
mlcli --help
# Command-specific help
mlcli train --help
mlcli tune --help