2024-04-29 12:09:00 发布
网友
我收到一条错误消息:
cannot import name 'mean_absolute_percentage_error' from 'sklearn.metrics'
,当我运行以下程序包时:
from sklearn.metrics import mean_absolute_percentage_error
我很感激你对我的建议。多谢各位
您需要从forge channel安装最新版本的scikit-learn:
scikit-learn
conda install -c conda-forge scikit-learn
为了检查您的安装,您可以使用
conda list scikit-learn # to see which scikit-learn version is installedconda list # to see all packages installed in the active conda environmentpython -c "import sklearn; sklearn.show_versions()"
您需要从forge channel安装最新版本的
scikit-learn
:为了检查您的安装,您可以使用
相关问题 更多 >
编程相关推荐