Skip to content

[WIP] Make it possible to pass an arbitrary regressor as method for CalibratedClassifierCV #21992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from

Conversation

aperezlebel
Copy link
Contributor

Reference Issues/PRs

Fixes #21280.

What does this implement/fix? Explain your changes.

This is a draft of a proposed solution to #21280.

  • Implements a third calibration method using a custom scikit-learn regressor in CalibratedClassifierCV.
  • Update calibration tests with this new method.
  • Docstrings.
  • Docstring tests.
  • Find meaningful names for new variables/functions/classes.
  • Extend at least one calibration example to demonstrate this new capability.
  • Update the Probability calibration page in the user guide with a paragraph on this method.

@ogrisel
Copy link
Member

ogrisel commented Dec 16, 2021

Thanks! By reading the PR, I realized that I made a mistake in the way I wrote #21280. What I had in mind it to allow to pass an arbitrary classifier with a predict_proba rather than an arbitrary regressor.

What you did with the binning reformulation is interesting but more complicated to what I had in mind. I edited #21280 to fix it. Sorry for the confusion.

@aperezlebel
Copy link
Contributor Author

Following updates of issue #21280, I close this PR and created #22010 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it possible to pass an arbitrary probablistic classifier as method for CalibratedClassifierCV
2 participants