Reputation: 5385
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
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.
The different scoring options can be found here: https://scikit-learn.org/stable/modules/model_evaluation.html
Upvotes: 1