【发布时间】:2017-05-05 11:02:10
【问题描述】:
当我运行 SVM python 代码时,我不断得到这个:
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/sklearn/cross_validation.py", line 44
"This module will be removed in 0.20.", DeprecationWarning)
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.
Warning (from warnings module):
File "/usr/local/lib/python2.7/dist-packages/sklearn/grid_search.py", line 43
DeprecationWarning)
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. This module will be removed in 0.20.
此警告消息表示什么?
提前致谢
【问题讨论】:
-
您熟悉“弃用”这个术语吗?这意味着该模块计划最终删除,您应该在编写新代码时避免使用它,同时更新旧代码以不依赖它。但它往往会在很长一段时间内发生,因此人们有足够的机会来处理它以避免最终损坏。我不确定还有什么不清楚的地方,您能否更具体地告诉我们您在消息中不明白的地方?
标签: python python-2.7 svm