Hello to all of you. When I attempt to calibrate the probability of a model, I receive the following outcomes:

It seems that the additional logistic regression model isn’t operating correctly. The model I’m using is from an Extra Trees Classifier tutorial: Probability calibration at https://gdmarmerola.github.io

I tried checking the probability curve with just a Logistic Regression model, but it looks like the one I’ve shown. Thus, it is not perfect. How is it possible that this is occurring?

Note: I also tried using sklearn’s CalibratedClassifierCV, but the outcomes are the same.