Open huwangxiong opened 9 years ago
Hi @huwangxiong
Can you submit a PR?
I have implemented this feature and submitted a pull request.
I have implemented this lift
feature with more datasets. See my repo here:
https://github.com/zoeleesss/Apriori
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