# Model threshold for classification model

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?

• Welcome to the community, @user76804! Please consider adding some sample code to your question. It can further clarify your questions. – Borhan Kazimipour Jun 28 at 12:11

p, r, thresholds = precision_recall_curve(y_test, y_scores)