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

Thanks for sharing the great knowledge, but I got some problem #17

Open
OGWang126 opened this issue Jul 21, 2020 · 1 comment
Open

Thanks for sharing the great knowledge, but I got some problem #17

OGWang126 opened this issue Jul 21, 2020 · 1 comment

Comments

@OGWang126
Copy link

when I try to run the train_embeddings.ipynb code. the command not found. And here are my code

print(os.system("DGLBACKEND=pytorch dglke_train --dataset DRKG --data_path ./train --data_files drkg_train.tsv drkg_valid.tsv drkg_test.tsv --format 'raw_udd_hrt' --model_name TransE_l2 --batch_size 2048 "))

print(os.system('--neg_sample_size 256 --hidden_dim 400 --gamma 12.0 --lr 0.1 --max_step 100000 --log_interval 1000 --batch_size_eval 16 -adv --regularization_coef 1.00E-07 --test --num_thread 1 --gpu 0 1 2 3 4 5 6 7 --num_proc 8 --neg_sample_size_eval 10000 --async_update'))

And the error remind

sh: dglke_train: command not found
32512
sh: --: invalid option
Usage: sh [GNU long option] [option] ...
sh [GNU long option] [option] script-file ...

thanks

@classicsong
Copy link
Collaborator

Did you do

!pip3 install torch
!pip3 install dgl 
!pip3 install dglke

What kind of machine you are using?

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