Scikit Learn: Logistic Regression model coefficients: Clarification
问题 I need to know how to return the logistic regression coefficients in such a manner that I can generate the predicted probabilities myself. My code looks like this: lr = LogisticRegression() lr.fit(training_data, binary_labels) # Generate probabities automatically predicted_probs = lr.predict_proba(binary_labels) I had assumed the lr.coeff_ values would follow typical logistic regression, so that I could return the predicted probabilities like this: sigmoid( dot([val1, val2, offset], lr.coef_