def predict_proba(self, X):
        if not hasattr(self, "coef_"):
            raise NotFittedError("Call fit before prediction")
        calculate_ovr = self.coef_.shape[0] == 1 or self.multi_class == "ovr"
        if calculate_ovr:
            return super(LogisticRegression, self)._predict_proba_lr(X)
        else:
            return softmax(self.decision_function(X), copy=False)
Probability estimates.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/linear_model/logistic.py/LogisticRegression.predict_proba