CLI Reference

compileml compile

Compile a pickled model + CSV into an artifact.

compileml compile --model model.pkl --csv train.csv --y-col DEFAULT \
                  --n-bands 10 --reasons reasons.json --out decision.json

Loads a pickled fitted model, reads features from the CSV (all columns except --y-col), imputes medians, builds monotone-quantile bands and isotonic calibration, and writes a hashed artifact. --reasons takes the reason dictionary as JSON (format).

Arguments

FlagDescription
--model MODELPickled fitted model (.pkl). Required.
--csv CSVTraining/calibration CSV. Required.
--y-col Y_COLOutcome column (enables calibration + bad-rate bands).
--n-bands N_BANDSRequested band count; merging may return fewer. Default 10.
--reasons REASONSReason dictionary JSON file.
--out OUTOutput artifact path. Required.