在GridSearchCV documentation中,您可以在score
函数中进行解析。如果解析为“无”,它将使用默认的得分函数(对于正在网格搜索的函数)。
问题是,例如,一个随机森林-得分函数是什么?对于其他算法,我该如何确定呢?我在随机森林documentation
中找不到有关得分的任何信息答案 0 :(得分:1)
默认得分为the mean accuracy
:
score(self, X, y[, sample_weight]) Returns the mean accuracy on the given test data and labels.
可以在此处找到不同的评分选项:https://scikit-learn.org/stable/modules/model_evaluation.html