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$
  • $\begingroup$ Welcome to the community, @user76804! Please consider adding some sample code to your question. It can further clarify your questions. $\endgroup$ – Borhan Kazimipour Jun 28 at 12:11
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, privacy policy and cookie policy

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