venn_abers/inductive-missing-cal-size
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| venn_abers | error | none, edit by hand | All versions |
Inductive Venn-Abers (inductive=True, the default on VennAbersCalibrator and VennAbersRegressor) splits training data into proper-training and calibration sets and requires either cal_size or train_proper_size. When both are None on an unfitted estimator, fit() raises Exception: For Inductive Venn-ABERS please provide either calibration or proper train set size.
va = VennAbersCalibrator(estimator=clf, inductive=True, random_state=0)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, VennAbersMultiClass, or VennAbersRegressor passing an estimator in inductive mode without cal_size or train_proper_size.
How to fix it
Section titled “How to fix it”Pass cal_size=0.2 (or train_proper_size=0.8), or switch to Cross Venn-Abers with inductive=False, n_splits=5.
Diagnostic message
Section titled “Diagnostic message”Inductive Venn-Abers (inductive=True) requires cal_size or train_proper_size when wrapping an unfitted estimator and raises Exception at fit time if both are None. Pass cal_size (for example cal_size=0.2) or train_proper_size.See all rules in the venn_abers pack.