Skip to content
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

running errors #1

Open
Rightanglelababby opened this issue Jul 6, 2021 · 2 comments
Open

running errors #1

Rightanglelababby opened this issue Jul 6, 2021 · 2 comments

Comments

@Rightanglelababby
Copy link

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.

@ZIbuyu1200
Copy link

I meet same error QAQ

@jiongqian
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants