Skip to main content
███╗   ███╗██╗      ██████╗██╗     ██╗
████╗ ████║██║     ██╔════╝██║     ██║
██╔████╔██║██║     ██║     ██║     ██║
██║╚██╔╝██║██║     ██║     ██║     ██║
██║ ╚═╝ ██║███████╗╚██████╗███████╗██║
╚═╝     ╚═╝╚══════╝ ╚═════╝╚══════╝╚═╝

MLCLI - Machine Learning Command Line Interface

Python PyPI License

A powerful, modular CLI tool for training, evaluating, and tracking ML/DL models

📖 Documentation • 📦 PyPI • 📚 Full Docs


✨ Features

  • ML Models: Logistic Regression, SVM, Random Forest, XGBoost
  • DL Models: TensorFlow DNN, CNN, RNN/LSTM/GRU
  • Hyperparameter Tuning: Grid Search, Random Search, Bayesian (Optuna)
  • Model Explainability: SHAP & LIME
  • Preprocessing: Scalers, Normalizers, Encoders, Feature Selection
  • Experiment Tracking: Built-in tracker with JSON storage
  • Interactive TUI: Terminal-based user interface

🚀 Quick Start

Install

pip install mlcli-toolkit

Verify

mlcli --help

Train a Model

mlcli train --config configs/rf_config.json

Launch Interactive UI

mlcli ui

📋 Commands

Command Description
mlcli list-models List available model trainers
mlcli train -c <config> Train a model
mlcli eval -m <model> -d <data> -t <type> Evaluate a model
mlcli tune -c <config> -m <method> Hyperparameter tuning
mlcli explain -m <model> -d <data> -e <method> Model explainability
mlcli preprocess -d <data> -o <output> -m <method> Preprocess data
mlcli list-runs List experiment runs
mlcli ui Launch interactive TUI

📝 Configuration Example

{
  "model": {
    "type": "random_forest",
    "params": {
      "n_estimators": 100,
      "max_depth": null,
      "random_state": 42
    }
  },
  "dataset": {
    "path": "data/train.csv",
    "type": "csv",
    "target_column": "target"
  },
  "training": {
    "test_size": 0.2,
    "random_state": 42
  },
  "output": {
    "model_dir": "artifacts",
    "save_formats": ["pickle", "joblib"]
  }
}

📚 Documentation

For complete documentation including:

  • All configuration options
  • Hyperparameter tuning guides
  • Model explainability (SHAP/LIME)
  • Data preprocessing pipeline
  • Extending MLCLI with custom trainers
  • Troubleshooting

See docs/DOCUMENTATION.md


🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


📄 License

This project is licensed under the MIT License.

Metadata

Release files for mlcli-toolkit 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlcli-toolkit 0.3.1
File Size Uploaded
mlcli_toolkit-0.3.1.tar.gz 96.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlcli-toolkit 0.3.1
File Interpreter ABI Platform
mlcli_toolkit-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 236.9 kB

Release files / mlcli_toolkit-0.3.1.tar.gz

Download URL mlcli_toolkit-0.3.1.tar.gz
Size 96.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e52c9646bb0f7c34ced5c4ef938a9ea8fa3c4b9051bd36816c69452db4dc0ea7
BLAKE2b-256 checksum
How to use checksums
1a8baef56ffea3673b7fda7c9c025670923555ab77d7f7d924b593054400e212
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / mlcli_toolkit-0.3.1-py3-none-any.whl

Download URL mlcli_toolkit-0.3.1-py3-none-any.whl
Size 140.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df15294df7e9d11244de316b406cc18a4622be047ef575b34b113cbb5d9a7966
BLAKE2b-256 checksum
How to use checksums
b88f73457a11d640f960d3bbb116da0f7b36751843f3d1b443b85547c6dab08c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page