-
-
Notifications
You must be signed in to change notification settings - Fork 26k
The shape of threshold returned by precision_recall_curve #4996
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
Comments
True... and that is inconsistent between That would be backward-incompatible but would actually do what the docs say. |
I can try this one. Can you expand on "Maybe we should just add the smallest values as threshold for |
well the smallest score value seems to be dropped from threshold. We could not drop it. |
my fault, i misread the |
My explanation in #5091 (comment). TLDR: documentation not precisely correct, but code is. |
|
Inspecting the output of the code you gave, never more then one value is dropped (but maybe just because it is very unlikely?) |
|
right, But then again, I have to recheck the behavior of |
Yes, we possibly should be consistent, but it depends in part on how auc On 15 August 2015 at 04:21, Andreas Mueller [email protected]
|
In the
sklearn.metrics.precision_recall_curve
documentation,But as the example below shows,
the shape of threshold is not
len(np.unique(probas_pred))
.The text was updated successfully, but these errors were encountered: