作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 cross_validation
来自sklearn,
from sklearn.cross_validation import train_test_split
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.
最佳答案
为避免这种情况,您只需更换:
from sklearn.cross_validation import train_test_split
from sklearn.model_selection import train_test_split
关于scikit-learn - sklearn 的弃用警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43302400/
我是一名优秀的程序员,十分优秀!