scikit-learn 1 · Training models
Get class probabilities
Return the predicted probability of each class instead of just the label.
probabilities = clf.predict_proba(X_test)
Official scikit-learn 1 documentation
scikit-learn 1 · Training models
Return the predicted probability of each class instead of just the label.
probabilities = clf.predict_proba(X_test)
Official scikit-learn 1 documentation
Was this page helpful?