Skip to Content
OchreML
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 / FlagDefaultDescription
datarequiredPath to dataset (.csv, .tsv, or .parquet)
--targetrequiredTarget column name
--cv3Number of cross-validation folds (must be >= 2 and <= n_samples)
--deviceautoTarget device (auto, cpu, cuda:0, wgpu, tpu)
--taskautoTask override: auto, classification, or regression
--outNoneOptional .dit path to save the winning estimator refit on all rows
--jsonfalseEmit 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 --json

See the AutoML & Streaming guide for full candidate hyperparameters and sample JSON leaderboard output.

On this page