mlxtend icon indicating copy to clipboard operation
mlxtend copied to clipboard

Adding more metrics for Association Rules

Open UltraArceus3 opened this issue 1 year ago • 2 comments

Discussed in https://github.com/rasbt/mlxtend/discussions/1031

Originally posted by Nachiket18 April 24, 2023 There are several metrics like lift, leverage, conviction etc are available for association rules. Wondering if it would be of help if we implement other metrics like Jaccard, Added Value, Certainty Factor etc.

We are planning on implementing more Association Rules metrics from this resource: https://mhahsler.github.io/arules/docs/measures Metrics we are currently considering are: Jaccard Coefficient, Certainty Factor, and Added Value.

image image image

UltraArceus3 avatar May 18 '24 19:05 UltraArceus3

  1. We were able to implement the Jaccard similarity (https://github.com/UltraArceus3/mlxtend/blob/master/mlxtend/frequent_patterns/association_rules.py#L133)
  2. We tested the code with an sample example (https://github.com/UltraArceus3/mlxtend/blob/master/mlxtend/frequent_patterns/tests/test_association_rules.py#L181)

@rasbt - Could you share your thoughts about this? We have also implemented Certainty Factor and Centered Confidence for which we would be writing test cases.

Nachiket18 avatar May 21 '24 22:05 Nachiket18

H @UltraArceus3 and @Nachiket18 . Thanks for suggesting these and offering to help implementing these! On my end, I am currently very maxed out with other projects and wouldn't have the capacity to contribute anything at the moment. However, I could approve PRs etc in case you want to contribute these. (Sorry that I can't be more helpful at the moment, but my free time is mostly taken up by my LLM from Scratch book until mid July; but I am happy to approve PRs, and I actually really appreciate your willingness to contribute).

rasbt avatar May 23 '24 01:05 rasbt