Sklearn logistic regression - adjust cutoff point
问题 I have a logistic regression model trying to predict one of two classes: A or B. My model's accuracy when predicting A is ~85%. Model's accuracy when predicting B is ~50%. Prediction of B is not important however prediction of A is very important. My goal is to maximize the accuracy when predicting A. Is there any way to adjust the default decision threshold when determining the class? classifier = LogisticRegression(penalty = 'l2',solver = 'saga', multi_class = 'ovr') classifier.fit(np