2020-07-10
阅读量:
3791
在sklearn API中,best_score / score / best_estimator_.score() 区别是什么?
在sklearn API中,best_score / score / best_estimator_.score() 区别是什么?
解答:
best_score是最好的分数(交叉验证中设置的那个scoring = 'roc_auc'或者是'recall')
best_estimator_是网格搜索找到的最好的参数,并且把参数加载到了那个模型里了,这个best_estimator_就是最好的模型
model = grid_cv.best_estimator_
这个最好的模型可以用来预测,打分,就是和我们原来学的那些模型一样的用法,所以这个best_estimator_.score算出来的是最好模型下的准确率






评论(0)


暂无数据
推荐帖子
8条评论
2条评论