我是靠谱客的博主 典雅蚂蚁,最近开发中收集的这篇文章主要介绍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: sklearn.externals.joblib is deprecated in 0.21 and will be removed in 0.23. Plea所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复