无法在apriori中设置min_confidence

问题描述 投票:0回答:1

enter image description here 在 Python 中,我正在使用 Apriori 算法执行购物篮分析/优化。当我尝试设置最小置信度时,出现此错误消息:apriori() 收到了一个不寻常的关键字参数“最小置信度”。我也尝试使用“最小阈值”,但遇到了同样的问题。为了方便起见,我还附上了屏幕截图。我正在使用 Kaggle 笔记本

所以我试图为 Apriori 设置规则。当我尝试设置 min_confidence 时,会弹出此错误 apriori() got an unexpected keyword argument 'min_confidence'.

python algorithm apriori mlxtend
1个回答
0
投票

看起来参数应该命名为

minConfidence
minSupport

https://pypi.org/project/apriori-python/

© www.soinside.com 2019 - 2024. All rights reserved.