corels / pycorels

Public home of pycorels, the python binding to CORELS
GNU General Public License v3.0
72 stars 13 forks source link

predict_proba : is there way to calculate probability of correct decision #9

Open Sandy4321 opened 4 years ago

Sandy4321 commented 4 years ago

is there way to calculate probability of correct decision usually it classier has attribute predict_proba

like https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html

predict_proba(self, X) Probability estimates.
jamesmyatt commented 4 years ago

Doesn't look like it, but it could be implemented like for a decision tree, rather than for a logistic regression. Remember this is not the "probability of correct decision"; only the fraction of the training data that falls into each class for each leaf.

See https://scikit-learn.org/stable/modules/generated/sklearn.tree.DecisionTreeClassifier.html#sklearn.tree.DecisionTreeClassifier.predict_proba.

Sandy4321 commented 4 years ago

Great observation thanks But what is leave in Corel case I get only one rule For example If (*****) Then yes Else No