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

I run the source code and get the unexpected result, can somebody help ? #233

Open
yulong-CSAI opened this issue Sep 22, 2021 · 5 comments

Comments

@yulong-CSAI
Copy link

I start to read the dglke source code, and decide to develep on this code, However, when I run the source code , I got the unexpected result.
I run the source code by this command:
python train.py --model_name TransE_l2 --dataset FB15k --batch_size 1000 --neg_sample_size 200 --hidden_dim 400 --gamma 19.9 --lr 0.25 --max_step 500 --log_interval 100 --batch_size_eval 16 --test -adv --regularization_coef 1.00E-09 --num_thread 1 --num_proc 48
the result is:
image

@yulong-CSAI
Copy link
Author

can sb help?

@yulong-CSAI
Copy link
Author

did I miss something?

@classicsong
Copy link
Contributor

classicsong commented Sep 22, 2021

How many cpus do you have?

@classicsong
Copy link
Contributor

If you have 24 cores, you should use

dglke_train --model_name TransE_l2 --dataset FB15k --batch_size 1000 --neg_sample_size 200 --hidden_dim 400 --gamma 19.9 --lr 0.25 --max_step 500 --log_interval 100 --batch_size_eval 16 --test -adv --regularization_coef 1.00E-09 --num_thread 1 --num_proc 24

You need to change num_proc and the max_step.

@yulong-CSAI
Copy link
Author

If you have 24 cores, you should use

dglke_train --model_name TransE_l2 --dataset FB15k --batch_size 1000 --neg_sample_size 200 --hidden_dim 400 --gamma 19.9 --lr 0.25 --max_step 500 --log_interval 100 --batch_size_eval 16 --test -adv --regularization_coef 1.00E-09 --num_thread 1 --num_proc 24

You need to change num_proc and the max_step.

Thanks to reply,It works !!

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