sklearn.calibration.calibration_curve(y_true, y_prob, normalize=False, n_bins=5)
[source]
Compute true and predicted probabilities for a calibration curve.
The method assumes the inputs come from a binary classifier.
Calibration curves may also be referred to as reliability diagrams.
Read more in the User Guide.
Parameters: |
|
---|---|
Returns: |
|
Alexandru Niculescu-Mizil and Rich Caruana (2005) Predicting Good Probabilities With Supervised Learning, in Proceedings of the 22nd International Conference on Machine Learning (ICML). See section 4 (Qualitative Analysis of Predictions).
sklearn.calibration.calibration_curve
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.calibration.calibration_curve.html