我是靠谱客的博主 典雅蚂蚁,这篇文章主要介绍DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Plea,现在分享给大家,希望可以做个参考。

调代码时遇到了

DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Please import this functionality directly from joblib, which can be installed with: pip install joblib. If this warning is raised when loading pickled models, you may need to re-serialize those models with scikit-learn 0.21+.
  warnings.warn(msg, category=DeprecationWarning)

问题

解决办法:

不用再 from sklearn.externals import joblib
直接 import joblib

调试成功

最后

以上就是典雅蚂蚁最近收集整理的关于DeprecationWarning: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Plea的全部内容,更多相关DeprecationWarning:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(46)

评论列表共有 0 条评论

立即
投稿
返回
顶部