安装了sklearn(scikit-learn)但是报错ImportError:No module named 'sklearn.cross_validation'
参考链接:
sklearn.cross_validation是sklearn老版本的模块,新版本都迁移到了
sklearn.model_selection
修改代码为from sklearn. model_selection import train_test_split 即可正常运行。
安装了sklearn(scikit-learn)但是报错ImportError:No module named 'sklearn.cross_validation'
https://fulequn.github.io/2020/10/Article202010161/