Python机器学习DeprecationWarning [英] python machine learning DeprecationWarning

查看:61
本文介绍了Python机器学习DeprecationWarning的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请您能帮我解决这个问题吗?

please could you help me to solve this?

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

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 are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning)

推荐答案

The

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中删除.

No need to worry but keep in mind that cross_val will be removed in 0.20.

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

This error is just to warn you that the developers are going to move this function before they do it.

只是一个例子.将来我们将不得不替换:

Just an example.In the future we will have to replace:

from sklearn.cross_validation import KFold

具有:

 from sklearn.model_selection import KFold


对于我在您发布的屏幕截图中看到的第二次错误,似乎未安装SA3L module.


For the second error that I can see in the screenshot that you posted, the SA3L module seems not to be installed.

这篇关于Python机器学习DeprecationWarning的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆