Sklearn Random Forest使用哪个评分功能

时间:2019-11-14 18:37:58

标签: python scikit-learn

在GridSearchCV documentation中,您可以在score函数中进行解析。如果解析为“无”,它将使用默认的得分函数(对于正在网格搜索的函数)。

问题是,例如,一个随机森林-得分函数是什么?对于其他算法,我该如何确定呢?我在随机森林documentation

中找不到有关得分的任何信息

1 个答案:

答案 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/generated/sklearn.ensemble.RandomForestClassifier.html#sklearn.ensemble.RandomForestClassifier.score


可以在此处找到不同的评分选项:https://scikit-learn.org/stable/modules/model_evaluation.html