【发布时间】:2021-12-03 13:39:58
【问题描述】:
我已经使用 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 版本,但总是得到相同的错误。
非常感谢
【问题讨论】: