You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! :) I changed some of the code to use with Python 3,, however, I have some issues.
I cannot find a library with the FP-growth algorithm that works. I tried the pyspark one and the FP-growth. In the pyspark one, I end up with spark's connection errors after some runs. It was working in the beginning, but then it blew up. The second one cannot handle my dataset due to memory problems.
Btw, after I changed some dict problems with iteritems() and has_key(), the nimeFPtree function gives me an error that I do not know what it is:
bigL = [v[0] for v in sorted(headerTable.items(), key=lambda p: p[1])] # (sort header table)
AttributeError: 'NoneType' object has no attribute 'items'
Any thoughts?
Thanks in advance
The text was updated successfully, but these errors were encountered:
the headerTable[k] value was all deleted and finally headerTable return None.
The author set the n = 20000 in the demo, maybe it's too big for your dataset, and I decreased the n value to make this demo works at my dataset.
Hi! :) I changed some of the code to use with Python 3,, however, I have some issues.
I cannot find a library with the FP-growth algorithm that works. I tried the pyspark one and the FP-growth. In the pyspark one, I end up with spark's connection errors after some runs. It was working in the beginning, but then it blew up. The second one cannot handle my dataset due to memory problems.
Btw, after I changed some dict problems with iteritems() and has_key(), the nimeFPtree function gives me an error that I do not know what it is:
Any thoughts?
Thanks in advance
The text was updated successfully, but these errors were encountered: