Can't set min_confidence in apriori

163 Views Asked by At

enter image description here In Python, I am performing Market Basket Analysis/Optimization using the Apriori Algorithm. When I try to set min confidence, this error message appears: apriori() received an unusual keyword argument 'min confidence'. I also attempted to use 'min threshold,' but received the same issue. I have also attached the screenshot for ease. I AM USING Kaggle Note Book

So I was trying to set rules for Apriori. When I am trying to set min_confidence, This error pops out apriori() got an unexpected keyword argument 'min_confidence'.

1

There are 1 best solutions below

1
btilly On

It looks like the parameters are supposed to be named minConfidence and minSupport.

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