██████╗ ██████╗ ███████╗███╗ ██╗███╗ ███╗██╗
██╔═══██╗██╔══██╗██╔════╝████╗ ██║████╗ ████║██║
██║ ██║██████╔╝█████╗ ██╔██╗ ██║██╔████╔██║██║
██║ ██║██╔═══╝ ██╔══╝ ██║╚██╗██║██║╚██╔╝██║██║
╚██████╔╝██║ ███████╗██║ ╚████║██║ ╚═╝ ██║███████╗
╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝
Production ML Pipeline | 14+ Models | One Line
open-mlpipe
Data in. Model out. No manual steps between.
Zero-touch AutoML for tabular data — trains, tunes, evaluates, and saves production-ready models in a single command.
14+ Models · Auto EDA · Optuna Tuning · SHAP Explainability · Windows-First · Production Ready
pip install open-mlpipe
Technology and platform details
Quick Start · Pipeline · Models · Python API · CLI · Config · Architecture · Docs
Try it in 30 seconds
pip install open-mlpipe
openml run --data dataset.csv
That's it. CSV in, production model out.
Want it interactive?
openml
Gives you a REPL: type run, pick your dataset, pick your target, watch it go.
How it works
Raw CSV → Load → EDA → Clean → Feature Eng → Split → Preprocess
→ Compare 14 Models → Tune → Select → Evaluate → Explain → Save
| Stage | What Happens |
|---|---|
| Load | Auto-detect CSV/Parquet/Excel, infer task type (regression/classification) |
| EDA | Statistical profiling, missing values, outliers, skewness |
| Clean | Duplicates, ID columns, low-cardinality, IQR outlier removal |
| Feature Eng | Interactions, log transforms, missingness flags, datetime decomposition |
| Split | Stratified train/test split with configurable ratio |
| Preprocess | Impute, scale, encode — all via ColumnTransformer |
| Compare | 14+ models head-to-head with cross-validation |
| Tune | Optuna Bayesian hyperparameter optimization with baseline comparison |
| Select | SHAP-based feature importance ranking |
| Evaluate | R², RMSE, MAE, MAPE, F1, ROC-AUC, MCC, overfitting detection |
| Explain | SHAP summary, dependence, and waterfall plots |
| Save | Full inference pipeline (feature_eng + model) as joblib |
Terminal preview
Interactive mode — run a pipeline
https://github.com/user-attachments/assets/68fe7370-fc1e-4689-855e-1f2baa6bc73f
Pipeline output — model comparison + save
>> load OK (0.1s)
>> eda OK (0.2s)
>> clean OK (0.0s)
>> feature_eng OK (0.0s)
>> split OK (0.0s)
>> preprocess OK (0.0s)
>> compare OK (25.9s) — tested 14 models
>> tune OK (20.2s) — Optuna 20 trials
>> select OK (0.0s)
>> evaluate OK (0.0s)
>> explain OK (3.3s)
>> save OK (0.1s)
╭────────────────────────────────── Pipeline Complete ───────────────────────────────────╮
│ Task REGRESSION │
│ Target price │
│ Best Model xgboost │
│ Time 52.1s │
│ test_r2 0.8474 │
│ test_rmse 43918.22 │
│ test_mae 2924.15 │
╰────────────────────────────────────────────────────────────────────────────────────────╯
Model saved to: artifacts/model_v1.joblib
Full session log: logs/pipeline_run_20260722_143200.log
Supported models
| Category | Models |
|---|---|
| Linear | Ridge, Lasso, ElasticNet, LinearRegression, LogisticRegression |
| Tree & Ensemble | DecisionTree, RandomForest, ExtraTrees |
| Boosting | XGBoost, LightGBM, GradientBoosting, HistGradientBoosting, AdaBoost |
| Instance & Probabilistic | KNN, SVM, NaiveBayes |
| Ensemble | Stacking, Voting |
Auto-selected based on data characteristics and task type. Each model is tuned with Optuna.
Python API
Simple — one line
from open_mlpipe import run
ctx = run("dataset.csv", target="price")
print(f"Best model: {ctx.best_model_name}") # "xgboost"
print(f"Test R²: {ctx.metrics['test_r2']:.4f}") # 0.8474
# Load saved model
import joblib
model = joblib.load("artifacts/model_v1.joblib")
predictions = model.predict(new_data)
Config-driven
from open_mlpipe import run_config
ctx = run_config("configs/regression.yaml")
Programmatic
from open_mlpipe import PipelineConfig, PipelineRunner
from open_mlpipe.config.resolver import build_level1_config
config = build_level1_config("data.csv", target="price")
config.tuning.enabled = True
config.tuning.n_trials = 50
runner = PipelineRunner(config)
ctx = runner.run()
print(ctx.best_model_name) # "lightgbm"
print(ctx.metrics["test_r2"]) # 0.8474
CLI usage
Commands
# Full pipeline — zero-touch
openml run --data dataset.csv
# With target specified
openml run --data dataset.csv --target price
# Config-driven
openml run --config configs/regression.yaml
# EDA only
openml profile --data dataset.csv
# Interactive mode
openml
# View last session output
openml view
Options
--data, -d Path to data file (CSV, Parquet, Excel)
--target, -t Target column name (auto-detected if not given)
--config, -c Path to YAML config file
--project, -p Project name
--deploy Generate FastAPI + Dockerfile
--n-trials Number of Optuna trials
--cv Number of CV folds
--test-size Test set ratio
YAML config
project: housing-prices
task: auto
data:
path: data/housing.csv
target: price
test_size: 0.2
model_selection:
candidates: [lightgbm, xgboost, random_forest, ridge]
scoring: [r2, neg_mean_absolute_error]
ranking_primary: r2
tuning:
enabled: true
engine: optuna
n_trials: 50
timeout: 600
feature_selection:
enabled: true
method: shap_importance
min_importance: 0.01
evaluation:
explainability: true
shap_plots: [summary, dependence, waterfall]
Architecture
open-mlpipe/
├── src/open_mlpipe/
│ ├── cli.py # CLI entry point (Click + Rich)
│ ├── config/
│ │ ├── schema.py # Pydantic config models
│ │ ├── resolver.py # Config resolution + YAML loading
│ │ └── defaults.py # Auto-detection logic
│ ├── core/
│ │ ├── pipeline.py # PipelineRunner — orchestrates all stages
│ │ ├── context.py # PipelineContext — shared state between stages
│ │ ├── stage.py # Base Stage ABC
│ │ ├── registry.py # StageRegistry — execution order
│ │ └── defaults.py # Model defaults + search spaces
│ ├── stages/
│ │ ├── load.py # Data loading
│ │ ├── eda.py # Exploratory data analysis
│ │ ├── clean.py # Data cleaning
│ │ ├── feature_eng.py # Feature engineering
│ │ ├── split.py # Train/test split
│ │ ├── preprocess.py # ColumnTransformer pipeline
│ │ ├── compare.py # Model comparison (14+ models)
│ │ ├── tune.py # Optuna hyperparameter tuning
│ │ ├── select.py # SHAP feature selection
│ │ ├── evaluate.py # Metrics + overfitting detection
│ │ ├── explain.py # SHAP explainability plots
│ │ ├── save.py # Model serialization
│ │ └── deploy.py # FastAPI + Dockerfile generation
│ ├── utils/
│ │ ├── pager.py # Built-in cross-platform log viewer
│ │ ├── warning_display.py # Windows console buffer + warnings
│ │ ├── io.py # Data loading utilities
│ │ └── typing.py # Enums (TaskType, ColumnType)
│ └── deploy/ # FastAPI + Docker templates
├── tests/ # 113 unit tests + integration tests
├── configs/ # 5 example YAML configs
└── pyproject.toml # Package config
Installation
# Core (minimal)
pip install open-mlpipe
# With CatBoost
pip install open-mlpipe[catboost]
# With MLflow tracking
pip install open-mlpipe[mlflow]
# With deployment (FastAPI + Docker)
pip install open-mlpipe[deploy]
# Everything
pip install open-mlpipe[full]
What's new in v1.0.6
- Built-in interactive pager —
openml viewopens full session logs with arrow-key scroll, search, and page navigation. No more "open notepad". - Pipeline completion auto-offer — after running a pipeline, press
yto view full output in the pager immediately. - Session path persistence —
openml viewalways finds the last run's log, even across sessions. - CLI
viewcommand — standalone command for browsing any session log. - Cross-platform — works on Windows (msvcrt), Linux, macOS (termios), and web-based PTYs (OpenCode, VS Code terminal).
Testing
# Run all tests
pytest tests/
# Run with coverage
pytest tests/ --cov=open_mlpipe
113/113 tests passing — unit tests for all 14 stages, CLI, config, and utilities.
Contributing
- Fork the repo
- Create a feature branch (
git checkout -b feature/my-feature) - Run
ruff check src/open_mlpipe/— fix any lint - Run
pytest tests/— make sure all 113 tests pass - Open a Pull Request
License
MIT License — see LICENSE for details.
| Where | Link |
|---|---|
| PyPI | pypi.org/project/open-mlpipe |
| GitHub | github.com/loisekk/open-mlpipe |
| Issues | github.com/loisekk/open-mlpipe/issues |
Built by Yash Brahmankar
If this saved you time, star the repo and share it.
Metadata
Release files for open-mlpipe 1.0.10
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 |
|---|---|---|---|---|
| open_mlpipe-1.0.10.tar.gz | 10.3 MB | Without provenance | Details for open_mlpipe-1.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| open_mlpipe-1.0.10-py3-none-any.whl | Python 3 | none | any | Details for open_mlpipe-1.0.10-py3-none-any.whl |
Total release size: 10.4 MB
Release files / open_mlpipe-1.0.10.tar.gz
| Download URL | open_mlpipe-1.0.10.tar.gz |
|---|---|
| Size | 10.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
682d98229a7625fc043fd619d3c870f5f9067717641d643543e3089f469b16a7
|
|
BLAKE2b-256 checksum How to use checksums |
df317940b1bf8b428ede43a98e96648ad5d92f312b72df9042e5036a0db6441d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / open_mlpipe-1.0.10-py3-none-any.whl
| Download URL | open_mlpipe-1.0.10-py3-none-any.whl |
|---|---|
| Size | 77.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57f706275813ae9a21a829844b2aaf216476fd66f1f760f1692d617bba94d342
|
|
BLAKE2b-256 checksum How to use checksums |
c7c16601278b49bf1554803f90d4c107ba1e23b09fdf77edae653f90fa3808a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for open-mlpipe 1.0.10
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.