我收到一条错误消息:
不能从'sklearn.metrics‘中导入名称'mean_absolute_percentage_error’
,当我运行以下包时:
from sklearn.metrics import mean_absolute_percentage_error我很感谢任何评论来解决这个问题。谢谢。
发布于 2021-04-08 22:32:50
您需要从锻造通道安装最新版本的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()"https://stackoverflow.com/questions/66571681
复制相似问题