Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lift (interestness) in rules #7

Open
huwangxiong opened this issue Jun 17, 2015 · 3 comments
Open

Add lift (interestness) in rules #7

huwangxiong opened this issue Jun 17, 2015 · 3 comments

Comments

@huwangxiong
Copy link

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

@asaini
Copy link
Owner

asaini commented Jul 24, 2016

Hi @huwangxiong

Can you submit a PR?

@sudomakeinstall2
Copy link

I have implemented this feature and submitted a pull request.

@zoeleesss
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants