AttributeError: 'OneHotEncoder' object has no attribute 'categories_'
Posted shuangcao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AttributeError: 'OneHotEncoder' object has no attribute 'categories_'相关的知识,希望对你有一定的参考价值。
解决办法:
更新sklearn库
具体方法:
1.打开anaconda下的anaconda的Promote
2.输入 pip list 可以查看当前已经安装的包和版本
3.更新sklearn:
输入”conda update scikit-learn”
参考:
以上是关于AttributeError: 'OneHotEncoder' object has no attribute 'categories_'的主要内容,如果未能解决你的问题,请参考以下文章