fp-growth
fp-growth copied to clipboard
Missing patterns resolved.
In fpgrowth.find_frequent_patterns function failed to get all patterns. So, changes in this code will get expected output. eg: In below example, transactions = [[1, 2, 5], [2, 4], [2, 3], [1, 2, 4], [1, 4], [2, 3], [1, 3], [1, 2, 3, 5], [1, 2, 3]] (4,):3 should be present in patterns, but it doesn't, my changes will give exact output.