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

ThresholdClassifier #601

Open
hirzel opened this issue Feb 5, 2021 · 0 comments
Open

ThresholdClassifier #601

hirzel opened this issue Feb 5, 2021 · 0 comments

Comments

@hirzel
Copy link
Member

hirzel commented Feb 5, 2021

It would be nice to have a higher-order operator, which calls predict_proba on its estimator argument, and implements predict by comparing the resulting probability against its threshold argument. This would give the user more control over the trade-off between precision and recall. For example:

trainable = ThresholdClassifier(estimator=LogisticRegression(), threshold=0.3)
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

No branches or pull requests

1 participant