running errors
Opened this issue · 2 comments
When we use the "deepwalk" for the base-embedding, we meet a error, as follows:
AttributeError: Can't pickle local object 'DeepWalk_Original.generate_walks..rnd_walk_workers'
, where the setting parameter is "python main.py --data PPI --format metis --basic-embed deepwalk --coarsen-level 2 --embed-dim 128 --refine-type MD-gcn". And the versions of the packages are:
tensorflow-gpu 1.15.0; scikit-learn 0.22.2; python 3.7; gensim 4.0.1; theano 1.0.4; networkx 2.5.1.
Look forward to your reply.
I meet same error QAQ
We were using Python 2.x for this development so the error could be related to Python 3.
I did a quick search online and found this: https://stackoverflow.com/questions/52265120/python-multiprocessing-pool-attributeerror, which seems related. According to the answer there, you may try to move rnd_walk_workers
definition to the top-level.