palash1992 / GEM

BSD 3-Clause "New" or "Revised" License
1.27k stars 360 forks source link

meet an error when load embedding #49

Closed zuozijiZHOULI closed 5 years ago

zuozijiZHOULI commented 5 years ago

Traceback (most recent call last): File "test_karate.py", line 58, in MAP, prec_curv = lp.evaluateStaticLinkPrediction(G,embedding) File "/home/public/anaconda3/lib/python3.6/site-packages/gem-1.0.0-py3.6.egg/gem/evaluation/evaluate_link_prediction.py", line 47, in evaluateStaticLinkPrediction X=graph_util.loadEmbedding('data/node_vectors1.txt') File "/home/public/anaconda3/lib/python3.6/site-packages/gem-1.0.0-py3.6.egg/gem/utils/graph_util.py", line 191, in loadEmbedding X[int(emb[0]), :] = emb_fl IndexError: index 469 is out of bounds for axis 0 with size 439

palash1992 commented 5 years ago

Again, is_unidirected should be False.