环境:python3.7.8
在使用keras做人脸识别时,使用了
sklearn.cross_validation import train_test_split
报错,显示找不到这个包
我检查了我确实已经安装了对应的依赖包和库函数,版本皆为最新。
解决方案:这个函数在该版本已经被弃用,改用
from sklearn.model_selection import train_test_split
即可解决。
环境:python3.7.8
在使用keras做人脸识别时,使用了
sklearn.cross_validation import train_test_split
报错,显示找不到这个包
我检查了我确实已经安装了对应的依赖包和库函数,版本皆为最新。
解决方案:这个函数在该版本已经被弃用,改用
from sklearn.model_selection import train_test_split
即可解决。