成功解决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即可!


大功告成!

相关文章
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
Can‘t get attribute ‘SiLU‘ on <module ‘torch.nn.modules.activation‘
Can‘t get attribute ‘SiLU‘ on <module ‘torch.nn.modules.activation‘
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
|
异构计算
ModuleNotFoundError: No module named ‘mmcv._ext‘
最近想将mmsegmentation打包成exe进行使用,但是遇到了一个问题,在打包的过程中不会显示报错信息,但是在执行exe程序之后,exe会出现ModuleNotFoundError: No module named 'mmcv._ext'的报错,导致软件崩溃。
1043 0
AttributeError: module ‘torch.utils‘ has no attribute ‘data‘
属性错误:模块的'torch.utils'没有属性'data'
105 0
|
PyTorch 算法框架/工具
成功解决ModuleNotFoundError: No module named ‘torch._C‘
成功解决ModuleNotFoundError: No module named ‘torch._C‘
成功解决ModuleNotFoundError: No module named ‘torch._C‘
|
PyTorch Linux 算法框架/工具
AttributeError: cannot assign module before Module.__init__() call
AttributeError: cannot assign module before Module.__init__() call
|
算法框架/工具 Windows
|
TensorFlow 算法框架/工具