[MRG] Support multi-label probability calibration#13060
[MRG] Support multi-label probability calibration#13060connorbrinton wants to merge 1 commit intoscikit-learn:mainfrom
Conversation
fbc3813 to
51d2e38
Compare
|
Hi @qinhanmin2014, would you be able to review this pull request? I see that you've recently approved PRs affecting this module. If it would be more appropriate for someone else to review it, please let me know. Thanks! 🙂 |
|
Hi @connorbrinton, I know it has been a while and I'm really sorry for that. Are you still interested in finalizing your work? If yes, do you mind synchronize with upstream? Thanks a lot for your patience! |
8729d24 to
797514c
Compare
7c4dd0a to
a30c895
Compare
|
Hi @cmarmo, thanks for following up on this PR 🙂 I rebased with upstream and fixed all of the new failures that resulted, so this PR should be ready for review again 👍 @glemaitre Let me know if you have any questions or requests for this PR once you get the chance to review it 😄 There is tiny amount of overlap between this PR and #17546, but the changes seem to be mostly complementary. Differences include:
I'd be happy to rebase on it once it's merged 😄 |
|
#17546 has been happily merged! 🚀 |
a30c895 to
f3e82e2
Compare
|
@connorbrinton let us know if you need any help with the sync with upstream. |
0c8c5e8 to
cd45aaf
Compare
These changes loosen `CalibratedClassifierCV`'s input validation to accept one-dimensional and non-numeric data (such as text).
cd45aaf to
91a348e
Compare
|
I'm not planning on updating this PR any more. Some of the features implemented by this PR have been implemented elsewhere, and other features haven't seemed to garner interest from maintainers. It's been a long time since there's been any movement on this PR, so there's no reason to keep it open |
CalibratedClassifierCVnow handles the calibration process in such a way that probability estimates can be calibrated for multi-label targets. Also loosens input validation requirements to better interoperate withPipeline.Reference Issues/PRs
Fixes #8710.
What does this implement/fix? Explain your changes.
Changes include (roughly in source code order):
CalibratedClassifierCV.predictare obtained usingLabelBinarizer.inverse_transform, which supports multi-label predictions_CalibratedClassifierfor handling binary classification problems is tidied and more thoroughly commented_CalibratedClassifier_CalibratedClassifier.predict_probaalong with more comments explaining what's happeningAny other comments?
Thanks for working on scikit-learn!