|
I'm running apriori on a dataset with 25,000 rows and 24 columns (features). When I try to run this with min_support set to anything less than 0.6, it runs out of memory. I'm watching the swapfile grow up to about 200G and then Mac OS shuts it down. itemsets = apriori(df, min_support=min_support, use_colnames=True) Any suggestions about how to deal with this? Break the problem into smaller parts? Change parameters to allow more swap space, etc? |
Answered by
rasbt
Feb 19, 2021
Replies: 1 comment 3 replies
|
I suggest trying |
2 replies
Answer selected by
khookguy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suggest trying
fpgrowthinstead ofapriori. They are both different approaches that lead to the same solution, butfpgrowthis usually more memory efficient. It's a simple drop-in replacement, so you can just swap it in without making any other changes.