venn_abers/unseeded-calibration-split
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| venn_abers | warning | none, edit by hand | All versions |
VennAbersCalibrator and VennAbersRegressor default to shuffle=True, random_state=None, and VennAbersCV/VennAbersMultiClass shuffle whenever shuffle=True. Leaving random_state unset or None makes calibration splits and calibrated probabilities change across runs.
va = VennAbersCalibrator(estimator=clf, inductive=True, cal_size=0.2)va = VennAbersCalibrator(estimator=clf, inductive=True, cal_size=0.2, random_state=0)What the rule reports
Section titled “What the rule reports”Calls to VennAbersCalibrator or VennAbersRegressor with an estimator and default/true shuffle without a non-None random_state, or calls to VennAbersCV / VennAbersMultiClass with shuffle=True and missing/None random_state.
How to fix it
Section titled “How to fix it”Pass an explicit integer random_state (such as random_state=0), or set shuffle=False when preserving chronological order.
Diagnostic message
Section titled “Diagnostic message”Shuffled Venn-Abers calibration without an integer random_state makes the proper-training/calibration split or cross-calibration folds non-reproducible. Pass random_state=0 (or another fixed integer seed) or set shuffle=False for chronological splits.See all rules in the venn_abers pack.