AttributeError:“Simple_Imputer”对象在 PyCaret 中没有属性“fill_value_categorical”

2024-02-04

我正在使用 PyCaret 并收到错误。

AttributeError: 'Simple_Imputer' object has no attribute 'fill_value_categorical'

尝试创建一个基本实例。

!pip install pycaret==1.0

from pycaret.regression import *
exp_reg = setup(data=df, target='Survived', session_id=2)

@eddygeek的回答 https://stackoverflow.com/a/70560862/14333696是正确的。我遇到了同样的错误,强制安装 scikit-learn 0.23.2 就解决了问题。

pip install scikit-learn==0.23.2 --force-reinstall
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

AttributeError:“Simple_Imputer”对象在 PyCaret 中没有属性“fill_value_categorical” 的相关文章

随机推荐