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

More training models commands

All training models commands · scikit-learn 1 cheatsheet

Was this page helpful?