Closed AlexMRuch closed 4 years ago
sorry, please give us a day or so. we updated the doc but didn't get time to update the pip package. we'll update the pip package this week.
I get the following error when I run the example FB15k?
DGLBACKEND=pytorch 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 -adv --regularization_coef 1.00E-09 --test --num_thread 1 --num_proc 8
root@iZwz9j4e8ncj9g62rhk5e3Z:~# DGLBACKEND=pytorch 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 -adv --regularization_coef 1.00E-09 --test --num_thread 1 --num_proc 8
Using backend: pytorch
Logs are being recorded at: ckpts/TransE_l2_FB15k_1/train.log
File not found. Downloading from https://data.dgl.ai/dataset/FB15k.zip
Download finished. Unzipping the file...
Unzip finished.
Reading train triples....
Finished. Read 483142 train triples.
Reading valid triples....
Finished. Read 50000 valid triples.
Reading test triples....
Finished. Read 59071 test triples.
|Train|: 483142
random partition 483142 edges into 8 parts
part 0 has 60393 edges
part 1 has 60393 edges
part 2 has 60393 edges
part 3 has 60393 edges
part 4 has 60393 edges
part 5 has 60393 edges
part 6 has 60393 edges
part 7 has 60391 edges
/usr/local/lib/python3.6/dist-packages/dgl/base.py:45: DGLWarning: Recommend creating graphs by dgl.graph(data)
instead of dgl.DGLGraph(data)
.
return warnings.warn(message, category=category, stacklevel=1)
/usr/local/lib/python3.6/dist-packages/dgl/base.py:45: DGLWarning: Keyword arguments ['readonly', 'multigraph', 'sort_csr'] are deprecated in v0.5, and can be safely removed in all cases.
return warnings.warn(message, category=category, stacklevel=1)
Traceback (most recent call last):
File "/usr/local/bin/dglke_train", line 11, in
@GYFgaoyuefei, this issue does not seem related to link prediction or node similarity. Can you confirm that? If your issue is related to something else, please open a new issue. Also, I'm sure the developers would find it useful if you included which operating system you're using, as well as which version of dgl-ke
and dgl
you are using. If you could please put your output in block-comments to help us read the error trace. Lastly, did you install dgl-ke
and dgl
for this pipeline in it's own environment? Thanks!
Sorry, let me open a new question
Sorry, let me open a new question
You should use dgl 0.4.3. DGL-KE is not compatable with DGL 0.5
@AlexMRuch You can try the pip now.
Awesome! I’ll try it next week! Thanks so much!
On Aug 26, 2020, at 10:10 PM, xiang song(charlie.song) notifications@github.com wrote:
@AlexMRuch https://github.com/AlexMRuch You can try the pip now.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/awslabs/dgl-ke/issues/139#issuecomment-681300063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIYWOLKMSH223FQYKGALFLSCW6BFANCNFSM4QFPHYBQ.
Neither
dglke_emb_sim
nordglke_predict
are appearing in the pip3 installed version ofdglke
, even after I try installing in a new environment and after I uninstall all older versions ofdglke
. Are these methods only available through the github version? If so, when will these additions be pushed topip3
?