-
Notifications
You must be signed in to change notification settings - Fork 857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FPMax issue with large datasets. #570
Comments
Do you have the code for parsing the json file into the transaction array by chance? |
Sure.
|
Actually, the issue is with the fpmax function, fpgrowth seems to be working fine. |
Oh good point. It looks like an issue indeed. Regarding the potential fix, there should probably be a check for for basenode in self.nodes[itemset[0]]: but I am CC'ing @harenbergsd, who implemented this function and may have more insights to why this function fails in this case. |
Hmm yeah I will look at this. It may be a simple check, but I want to think and make sure this condition makes sense from the algorithm perspective and I haven't missed something. |
Thanks! |
* fix fpmax issue (#570) with fptrees that contain no nodes * Add additional unit test for pattern mining. Also refactored tests. * update changelog * bumb version to 0.18.0dev0 * add unit test for min_support=0.
Is this fixed? |
Which version of mlxtend are you using? If you could double-check and let us know what the following prints in your case, that would be very helpful: >>> import mlxtend
>>> print(mlxtend.__version__) |
Hi @rasbt thanks for reply me, |
Thanks for the info. I think the change may not be in the latest release version yet. Please try to install the latest development version of mlxtend to see if this issue still persists. To install the latest development version, you can do
which will directly install the latest version from the master branch here on GitHub. The version should then be In [1]: import mlxtend
In [2]: mlxtend.__version__
Out[2]: '0.18.0dev0' |
Masked Input Data: https://filebin.net/vno7ks0ilbdkmocz/list_itemset.json
Total Transactions: 49613
Params:
min_support=6.046802249410437e-05
Ohe transformed input data
ValueError: min() arg is an empty sequence
The text was updated successfully, but these errors were encountered: