sklearn.calibration.calibration_curve(y_true, y_prob, normalize=False, n_bins=5) [source]
Compute true and predicted probabilities for a calibration curve. Read more in the User Guide. Parameters:
y_true : array, shape (n_samples,) True targets. y_prob : array, shape (n_samples,) Probabilities of the positive class. normalize : bool, optional, default=False Whether y_prob needs to be normalized into the bin [0, 1], i.e. is not a proper probability. If True, the smallest value in y_pro