0
$\begingroup$

How do I extract a model score based on desired precision recall for a classification model? Is there a command to extract it from precision_recall function in sklearn?

$\endgroup$
1
  • $\begingroup$ Welcome to the community, @user76804! Please consider adding some sample code to your question. It can further clarify your questions. $\endgroup$ Jun 28, 2019 at 12:11

1 Answer 1

1
$\begingroup$
p, r, thresholds = precision_recall_curve(y_test, y_scores)

For more clear understanding refer to this article: https://towardsdatascience.com/fine-tuning-a-classifier-in-scikit-learn-66e048c21e65

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.