成功解决sklearn\grid_search.py:42: DeprecationWarning: This module was deprecated in version 0.18 in fav
成功解决sklearn\grid_search.py:42: DeprecationWarning: This module was deprecated in version 0.18 in fav
解决问题
sklearn\grid_search.py:42: 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.
DeprecationWarning)
解决思路
sklearn\grid_search.py:42: 丢弃警告:这个模块在0.18版本中被弃用,取而代之的是model_selection模块,所有重构的类和函数都被移动到这个模块中。这个模块将在0.20中删除。
解决方法
该问题是警告信息,而不是error,即使不处理亦可运行程序,只需理解一下即可!该库未来的升级版本中,取而代之的是model_selection模块,所有重构的类和函数都被移动到这个模块中。这个模块将在0.20中删除。
赞 (0)