Commands
compare
Run lightweight AutoML across top OchreML estimators with K-fold cross-validation and optionally save the winning .dit model.
ochreml compare evaluates a curated pool of OchreML estimators using deterministic K-fold cross-validation (seed=42), ranks them on a leaderboard, and optionally refits and saves the winning model to .dit (^▽^).
Usage
ochreml compare <data> --target COL [--cv N] [--device DEVICE] \
[--task {auto,classification,regression}] [--out PATH] [--json]Arguments & Flags
| Argument / Flag | Default | Description |
|---|---|---|
data | required | Path to dataset (.csv, .tsv, or .parquet) |
--target | required | Target column name |
--cv | 3 | Number of cross-validation folds (must be >= 2 and <= n_samples) |
--device | auto | Target device (auto, cpu, cuda:0, wgpu, tpu) |
--task | auto | Task override: auto, classification, or regression |
--out | None | Optional .dit path to save the winning estimator refit on all rows |
--json | false | Emit structured JSON output |
Candidate Pools
- Classification (
accuracy):LogisticRegression,RidgeClassifier,DecisionTreeClassifier,RandomForestClassifier,ExtraTreesClassifier,HistGradientBoostingClassifier,GaussianNB. - Regression (
r2):LinearRegression,Ridge,DecisionTreeRegressor,RandomForestRegressor,ExtraTreesRegressor,HistGradientBoostingRegressor.
Example
ochreml compare train.csv --target label --cv 5 --out models/best.dit --jsonSee the AutoML & Streaming guide for full candidate hyperparameters and sample JSON leaderboard output.