rasbt / mlxtend

A library of extension and helper modules for Python's data analysis and machine learning libraries.
https://rasbt.github.io/mlxtend/
Other
4.82k stars 853 forks source link

Zhang's metric for association rules #980

Closed zuari1993 closed 1 year ago

zuari1993 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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