成功解决sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i
成功解決sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i
?
?
目錄
解決問題
解決思路
解決方法
?
?
?
?
?
解決問題
sklearn\cross_validation.py:41: 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)
?
解決思路
拒絕警告:在版本0.18中,此模塊已被棄用,取而代之的是將所有重構(gòu)類和函數(shù)移入的模型選擇模塊。還請注意,新的cv迭代器的接口與此模塊的接口不同。此模塊將在0.20中刪除?!按四K將在0.20中刪除。”)
?
解決方法
cross_validation模塊已經(jīng)被重構(gòu),在未來的版本中會被棄用!此信息提示為警告,即使不處理也不會影響代碼編程。如果想要去掉,可以更新庫至最新版本,然后使用最新版本cross_validation方法。
總結(jié)
以上是生活随笔為你收集整理的成功解决sklearn\cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 i的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ML之LoRSGD:基于LoR(逻辑回归
- 下一篇: ML之SVM:基于SVM(支持向量机)之