当前位置:网站首页>AttributeError: ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘
AttributeError: ‘GridSearchCV‘ object has no attribute ‘grid_scores_‘
2022-08-08 06:20:00 【波尔德】
刘建平的博客中关于随机森林调参的代码在运行时会出现如下所示的错误:
AttributeError: ‘GridSearchCV’ object has no attribute ‘grid_scores_’
解决方法如下:grid_scores_在sklearn0.20版本中已被删除,取而代之的是cv_results_。
原代码:
print(gsearch1.grid_scores_, gsearch1.best_params_, gsearch1.best_score_)
正确的代码:
print(gsearch1.cv_results_, gsearch1.best_params_, gsearch1.best_score_)
边栏推荐
- flex布局属性简约速记
- What does the "busy" Polkadot latest effort mean for DOT investors?
- 探索数字安全中国方案
- Integer block sample
- 网络安全:系统文件属性
- PostgreSQL中想新建一个用户,让他仅能访问指定数据表,不能通过客户端工具看到表结构和函数内容,是否有方案可解决?
- 神经网络一般训练多少次,神经网络训练时间过长
- Leetcode sword 】 refers to the Offer (special commando) summary
- 数字IC设计中为什么要避免锁存器(Latches)
- Tensorboard的使用 ---- SummaryWriter类(pytorch版)
猜你喜欢

The tests that need to be done in the development of medical device products

torch.gather() 用法解读

How to batch import files and rename them all to the same file name

cnn卷积神经网络反向传播,卷积神经网络维度变化

PostgreSQL中想新建一个用户,让他仅能访问指定数据表,不能通过客户端工具看到表结构和函数内容,是否有方案可解决?

oracle的插入sql错误

apifox使用文档之环境变量 / 全局变量 / 临时变量附apifox学习路线图

docker 安装 Redis 并配置持久化

Runtime - KVC, KVO principle

Preprocessing Notes
随机推荐
Test and Debug
分页组件的使用
Day7:面试必考选择题
How many times the neural network is generally trained, the neural network training time is too long
为什么有些参数reload就可以生效,而有些参数必须重启数据库?
结合实践总结docker 安装 mysql5.7
Validated plan
Why should Latches be avoided in digital IC design?
Introduction to uvm
并查集按秩合并rank数组
leetcode 232. Implement Queue using Stacks 用栈实现队列(简单)
Rust学习:5_所有权与借用
代码自动初始化
KDD'22 Recommendation System Papers (24 Research & 36 Application Papers)
线索二叉树
七千字带你了解封装等机制
Postman显示验证码图片(base64字符串)
flex布局属性简约速记
Integer block sample
webstorage