python机器学习DeprecationWarning

jav*_*vac 2 machine-learning scipy scikits scikit-learn

你能帮帮我解决这个问题吗?

C:\ Python27\lib\site-packages\sklearn\cross_validation.py:44:DeprecationWarning:在0.18版本中不推荐使用此模块,而是支持所有重构的类和函数都移动到的model_selection模块.另请注意,新CV迭代器的接口与此模块的接口不同.该模块将在0.20中删除."此模块将在0.20中删除.",DeprecationWarning)

mak*_*kis 6

C:\Python27\lib\site-packages\sklearn\cross_validation.py:44?: DeprecationWarning: 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 is different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning)

只是一个弃用警告.


无需担心,但请记住,cross_val将被删除0.20.

此错误只是警告您开发人员将在执行此操作之前移动此功能.


只是一个例子.将来我们将不得不取代:

from sklearn.cross_validation import KFold
Run Code Online (Sandbox Code Playgroud)

有:

 from sklearn.model_selection import KFold
Run Code Online (Sandbox Code Playgroud)

对于我在您发布的屏幕截图中可以看到的第二个错误,SA3L module似乎没有安装.

  • 谢谢#Sera是的我知道它是警告,我使用warnings.filterwarnings("忽略"),但它仍然可用,但任何方式谢谢我会忽略它,是的关于我的错误我想我没有导入这个类谢谢 (2认同)