Aprori and FP growth shows wrong itemsets #868
Unanswered
jahidhasanlinix
asked this question in
Q&A
Replies: 3 comments 9 replies
-
Thanks for sharing your concern. One thing we could look at is if the arrays maybe just have a different ordering. Could you try comparing the sorted DataFrames? E.g., by apriori_itemsets.sort_values('itemsets')[:5] and fp_itemsets.sort_values('itemsets')[:5] |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hm sorry, could you sort by support? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I tried like this, this gives some matched itemsets but still not accurate as it gives different index numbers even some matches in both cases. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was following the mlxtend docs to do the experiment on Apriori and FP growth and compare it but it seems I am getting different itemsets where it should be the same as I use the same df. Any suggestions why this occurring?
Beta Was this translation helpful? Give feedback.
All reactions