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
| Flag | Description |
|---|---|
| --model MODEL | Pickled fitted model (.pkl). Required. |
| --csv CSV | Training/calibration CSV. Required. |
| --y-col Y_COL | Outcome column (enables calibration + bad-rate bands). |
| --n-bands N_BANDS | Requested band count; merging may return fewer. Default 10. |
| --reasons REASONS | Reason dictionary JSON file. |
| --out OUT | Output artifact path. Required. |