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

Zhang's metric for association rules #980

Closed
zuari1993 opened this issue Nov 6, 2022 · 3 comments · Fixed by #992
Closed

Zhang's metric for association rules #980

zuari1993 opened this issue Nov 6, 2022 · 3 comments · Fixed by #992

Comments

@zuari1993
Copy link
Contributor

  • Current the in frequent_patterns/association_rules/metrics has support, confidence, lift, leverage, conviction.
  • It is missing Zhang's metric.
  • Zhang's metric is widely used in Industrial setting, particularly when you want to study dissociation also (other metrics only measure association)
  • It would be great to add Zhang's metric.

Additional context

Research paper on Zhang's metric:
https://www.tandfonline.com/doi/pdf/10.1080/08839510903208062

image

The values range between -1 and 1, any value <1 shows dissociation and value >1 shows association.

@rasbt
Copy link
Owner

rasbt commented Nov 7, 2022

That's a good point, thanks for suggesting that! Currently, I don't have the capacity to code it up, but I would welcome PRs!

@zuari1993
Copy link
Contributor Author

zuari1993 commented Nov 8, 2022

I went throught the test cases, and they are not equipped to handle a new metric. They should be modified as well.

I am interested and can take this up.

@rasbt
Copy link
Owner

rasbt commented Nov 8, 2022

If you have the time to contribute this, that'd be nice!

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

Successfully merging a pull request may close this issue.

2 participants