Python 3:No module named 'sklearn.model_selection'
- 论坛
- Python 3:No module named 'sklearn.model_selection'
11 浏览
Python 3:No module named 'sklearn.model_selection'
我正在尝试使用Python中的Keras深度学习库来学习神经网络。我正在使用Python 3,并参考这个链接:教程链接。我尝试运行下面的代码但是出现了以下错误:ImportError: No module named 'sklearn.model_selection'
import numpy import pandas from keras.models import Sequential from keras.layers import Dense from keras.wrappers.scikit_learn import KerasRegressor from sklearn.model_selection import cross_val_score from sklearn.model_selection import KFold from sklearn.preprocessing import StandardScaler from sklearn.pipeline import Pipeline
非常感谢任何帮助!