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

error when run example_reddit/pretrain_reddit.py using cpu #10

Closed
herbertguoqi opened this issue Sep 16, 2020 · 11 comments
Closed

error when run example_reddit/pretrain_reddit.py using cpu #10

herbertguoqi opened this issue Sep 16, 2020 · 11 comments

Comments

@herbertguoqi
Copy link

When I run example_reddit/pretrain_reddit.py using cpu, encountered this error
So any advice is welcome

...
File "/usr/local/lib/python3.5/dist-packages/pandas/core/generic.py", line 5063, in getattr
return object.getattribute(self, name)
File "pandas/_libs/properties.pyx", line 65, in pandas._libs.properties.AxisProperty.get
File "/usr/local/lib/python3.5/dist-packages/pandas/core/generic.py", line 5063, in getattr
return object.getattribute(self, name)
RecursionError: maximum recursion depth exceeded while calling a Python object

@acbull
Copy link
Owner

acbull commented Sep 16, 2020

Seems like the problem of pandas. Did you use the same version as we stated in the requirements.txt, i.e., pandas==0.24.2 ?

@herbertguoqi
Copy link
Author

Seems like the problem of pandas. Did you use the same version as we stated in the requirements.txt, i.e., pandas==0.24.2 ?

yeah, the version are same as requirements.txt, anything wrong with my machine? Or some parameter settings will led to this result?

@herbertguoqi
Copy link
Author

And the beginning of the error is
image

@acbull
Copy link
Owner

acbull commented Sep 17, 2020

I'm not sure what the problem is. Can you send me the command you execute and tell me which dataset you're using?

@herbertguoqi
Copy link
Author

I'm not sure what the problem is. Can you send me the command you execute and tell me which dataset you're using?
command:
I get the dataset through preprocess_reddit.py
the I execute
python3 pretrain_reddit.py --cuda -1 --n_hid 32 --n_layers 2 --n_batch 8 --batch_size 128 --sample_width 4 --neg_samp_num 4 --n_pool 4 --queue_size 16
then encountered the error as mentioned before

@acbull
Copy link
Owner

acbull commented Sep 17, 2020

If you're using CPU, why you set --cuda to be 1?

@acbull
Copy link
Owner

acbull commented Sep 17, 2020

Also, sample_width = 4 is far too small for sampling a subgraph. It means you only sample 4 nodes in one iteration.

From the bug you report, it seems like the program falls into an infinite-loop. I'll run your command later to check it out. But I would suggest you just use our recommended command (or you can slightly reduce the n_hid and n_layers)

@herbertguoqi
Copy link
Author

If you're using CPU, why you set --cuda to be 1?

emmmmmm, I set --cuda be -1

@acbull
Copy link
Owner

acbull commented Sep 17, 2020 via email

@herbertguoqi
Copy link
Author

Also, sample_width = 4 is far too small for sampling a subgraph. It means you only sample 4 nodes in one iteration.

From the bug you report, it seems like the program falls into an infinite-loop. I'll run your command later to check it out. But I would suggest you just use our recommended command (or you can slightly reduce the n_hid and n_layers)

@herbertguoqi
Copy link
Author

Thanks for all your answers! I changed a machine and the problem was solved...

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

2 participants