Apriori icon indicating copy to clipboard operation
Apriori copied to clipboard

Add lift (interestness) in rules

Open huwangxiong opened this issue 10 years ago • 3 comments

Hi, I want to add lift (lift(X ⇒ Y ) =conf (X ⇒ Y )/supp(Y )) after each rules. In your code, may like lift = getSupport(item)/(getSupport(element)*getSupport(remain)). But an error occured (ValueError: too many values to unpack) when I do so. Can you modified the code and add the lift value in each rules. Many thanks.

Best.

wangxiong

huwangxiong avatar Jun 17 '15 04:06 huwangxiong

Hi @huwangxiong

Can you submit a PR?

asaini avatar Jul 24 '16 03:07 asaini

I have implemented this feature and submitted a pull request.

sudomakeinstall2 avatar Jan 30 '17 13:01 sudomakeinstall2

I have implemented this lift feature with more datasets. See my repo here: https://github.com/zoeleesss/Apriori

zoeleesss avatar Jun 12 '18 02:06 zoeleesss