小编pod*_*ton的帖子

似乎无法导入scikit-learn的MLPRegressor

所以我正在尝试使用scikit-learn的MLPRegressor,但是python一直在吐痰ImportError: No module named MLPRegressor.我目前正在尝试使用语法from sklearn.neural_network import MLPRegressor.我已经使用Anaconda卸载并重新安装了sklearn,它仍然没有任何区别.

我曾尝试多次导入它,但我不断得到一个不同的错误,例如NameError: name 'MLPRegressor' is not defined只需包含import sklearn.neural_network.MLPRegressor然后调用构造函数或AttributeError: 'module' object has no attribute 'MLPRegressor'通过调用构造函数sklearn.neural_network.MLPRegressor.

我该怎么办呢?

python import importerror neural-network scikit-learn

6
推荐指数
1
解决办法
7321
查看次数