Model threshold for classification model
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