mgalloy / mglib

IDL library of Michael Galloy
Other
36 stars 28 forks source link

Add predict_proba() or decision_function() to each predictor #38

Open mgalloy opened 6 years ago

mgalloy commented 6 years ago

Each predictor should have either a predict_proba() or decision_function() method.

The predict_proba method of a classifier outputs the probability of the instance being in each of the classes.

The decision_function method finds the distance to the separating hyperplane. For example, an SVM classifier finds hyperplanes separating the space into areas associated with classification outcomes. This function, given a point, finds the distance to the separators.