Predicted probabilities

A classifier can return probabilities per class with predict_proba, in addition to the class predicted by predict. Probabilities make it possible to choose a threshold, rank by risk, or measure confidence. They are not always well calibrated, depending on the model.

Example

modele.predict_proba(X_test)[:, 1]

Related concepts

The whole glossary