Even if I don't define the scoring parameter, it scores and makes a decision for best estimator, but documentation says the default value for scoring is "None", so what is it using to score when I don't define a metric or list of metrics?
Asked
Active
Viewed 7,448 times
1 Answers
7
From the User Guide:
By default, parameter search uses the
scorefunction of the estimator to evaluate a parameter setting. These are thesklearn.metrics.accuracy_scorefor classification andsklearn.metrics.r2_scorefor regression...
Ben Reiniger
- 11,770
- 3
- 16
- 56
scoredocstring says what it measures. But classifiers and regressors consistently use accuracy and r2, respectively. – Ben Reiniger May 12 '21 at 01:13