You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MNT Make binary display method parameters' order consistent #30717
This came up while working on #30399 . These are all classes inheriting the _BinaryClassifierCurveDisplayMixin.
RocCurveDisplay and PrecisionRecallDisplay are pretty consistent, we would just need to change where pos_label is. No strong preference to where it should be.
CalibrationDisplay - is a bit different from the rest, e.g., there is a reference line (perfect calibration) and not a chance line. We could move ax up though, to be consistent with the other displays.
Table of parameters
CalibrationDisplay
DetCurveDisplay
RocCurveDisplay
PrecisionRecallDisplay
plot
ax name ref_line kwargs
ax name kwargs
ax name plot_chance_level chance_level_kw despine kwargs
ax name plot_chance_level chance_level_kw despine kwargs
from_estimator
estimator X y n_bins strategy pos_label name ref_line ax kwargs
estimator X y sample_weight response_method pos_label name ax kwargs
estimator X y sample_weight drop_intermediate response_method pos_label name ax plot_chance_level chance_level_kw despine kwargs
estimator X y sample_weight pos_label drop_intermediate response_method name ax plot_chance_level chance_level_kw despine kwargs
from_predictions
y_true y_prob n_bins strategy pos_label name ref_line ax kwargs
y_true y_pred sample_weight pos_label name ax kwargs
Activity
DeaMariaLeon commentedon Jan 25, 2025
/take
lucyleeow commentedon Jun 18, 2025
I think this can be closed now that #29151 is merged (and parameters were added in the correct order)
update arg consitency order (scikit-learn#30717) + small issues