def predict_log_proba(self, X):
        proba = self.predict_proba(X)

        if self.n_outputs_ == 1:
            return np.log(proba)

        else:
            for k in range(self.n_outputs_):
                proba[k] = np.log(proba[k])

            return proba
Predict class log-probabilities for X.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/forest.py/ForestClassifier.predict_log_proba