Skip to content
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

fix: Do not compute Brier score when predict_proba is not available #1064

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

glemaitre
Copy link
Member

closes #1050

As specified, do not try to compute Brier score with an estimator that does not provide probability estimate (i.e. does not have a predict_proba method).

Added a non-regression test as well.

@augustebaum augustebaum changed the title fix: Do not allow brier score when predict_proba is not available fix: Do not compute Brier score when predict_proba is not available Jan 9, 2025
@augustebaum
Copy link
Contributor

Nice work, just a suggestion for the parametrize

Copy link
Contributor

@augustebaum augustebaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@augustebaum augustebaum merged commit 3c05371 into probabl-ai:main Jan 9, 2025
19 checks passed
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.

Bug for _get_scorers_to_add with binary classification with classifier that expose predict_proba
2 participants