欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

成功解决This module was deprecated in version 0.18 in favor of the model_selection module into which all

发布时间:2025/3/21 编程问答 41 豆豆
生活随笔 收集整理的这篇文章主要介绍了 成功解决This module was deprecated in version 0.18 in favor of the model_selection module into which all 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

成功解决This module was deprecated in version 0.18 in favor of the model_selection module into which all

 

 

 

 

目录

解决问题

解决思路

解决办法


 

 

 

 

 

解决问题

This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.
  "This module will be removed in 0.20.", DeprecationWarning)

 

 

 

解决思路

这个模块是0.18版本不支持的model_selection模块的所有类和函数的重构移动。还要注意,新的CV迭代器的接口与此模块的接口不同。此模块将在0.20中删除。本模块将被删除,deprecationwarning)0.20。

很清楚,是版本问题,升级导致的不兼容!

 

 

 

解决办法

将机器学习库的cross_validation 改为model_selection即可!

大功告成!

 

 

 

 

 

总结

以上是生活随笔为你收集整理的成功解决This module was deprecated in version 0.18 in favor of the model_selection module into which all的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。