![](/img/trans.png)
[英]AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical'' in PyCaret
[英]Pycaret : "AttributeError: 'Simple_Imputer' object has no attribute 'target_variable'"
我用 Python 3.7 创建了一个干净的 conda 环境:
conda create -n pycaret python=3.7
然后我安装了pycaret:
pip install pycaret[full]
我从 conda 提示符打开了 jupyter Notebook,并从这里按照第一个教程进行操作: https://github.com/pycaret/pycaret/blob/master/examples/PyCaret%202%20Classification.ipynb
但是当我运行这个块时:
from pycaret.classification import *
clf1 = setup(data, target = 'Purchase', session_id=123, log_experiment=True, experiment_name='juice1')
我收到此错误:
AttributeError: 'Simple_Imputer' object has no attribute 'target_variable'
发生了什么? 我尝试了不同的安装,不同的 python 版本,但总是得到相同的错误。
非常感谢
似乎是pycaret的问题。 仍然没有解决......我也对这个错误感到疯狂。
我想尝试 pycaret,但我将不得不等到错误修复。 我刚刚创建了一个新的虚拟环境,执行 pip install pycaret 并运行示例...
甚至这个例子也不再起作用了。 很多人都面临着同样的问题。 我希望它会尽快解决...
我多次遇到同样的问题,安装 scikit-learn 的 0.23.2 版本总是对我有利。
pip install scikit-learn==0.23.2 --force-reinstall
不久前我在这里找到了诀窍。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.