CutePoison
CutePoison

Reputation: 5385

Which scoring function does Sklearn Random Forest use

In the GridSearchCV documentation you can parse in a score function. If None is parsed, it will use the default score function (for the function you are grid-searching over).

The question is for, say, a Random Forest - what is the scoring function? For other algorithms, how do I determine that? I cannot find anything about scoring in the Random Forest documentation

Upvotes: 0

Views: 2732

Answers (1)

seralouk
seralouk

Reputation: 33182

The default scoring is the mean accuracy:

score(self, X, y[, sample_weight])    Returns the mean accuracy on the given test data and labels.

Ref: https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier.score


The different scoring options can be found here: https://scikit-learn.org/stable/modules/model_evaluation.html

Upvotes: 1

Related Questions