Normalized After the Fact
Three classes, fit one-vs-rest. For one row the three independently trained binary models output , and : nothing ties them together, so they sum to 1.4.
ovr = OneVsRestClassifier(LogisticRegression()).fit(X, y)
print(ovr.predict_proba(x)[0], ovr.predict_proba(x)[0].sum())
scikit-learn documents that in the single-label multiclass case the rows of predict_proba sum to 1. What prints, and how does it differ from a softmax model?
Sign in to answer questions and track your progress
Sign In