Evaluation
slicemap
Find the slices where a new model regressed.
Install
pip install slicemap-cliIf you use uv, also as an isolated CLI:
uv tool install slicemap-cliWhat it does
A new model can lift the overall metric while getting worse on a segment that matters: a country, an age band, a category. slicemap scores every slice and lists where the new model lost ground, ranked by impact.
In action
A real recorded session of the CLI running.
Read it as text
slicemap: accuracy overall 0.877 -> 0.857 feature slice size old new regression plan enterprise 53 0.830 0.660 -0.170
$ slicemap compare preds.csv --true y_true --old old_pred --new new_pred --features plan
slicemap: accuracy overall 0.877 -> 0.857
feature slice size old new regression
plan enterprise 53 0.830 0.660 -0.170Features
- —Categorical and quantile slicing.
- —Accuracy, error and MAE metrics.
- —Impact ranking: size times degradation.
- —CI gate and JSON output.