thunlp / Fast-TransX

An Efficient implementation of TransE and its extended models for Knowledge Representation Learning
MIT License
402 stars 108 forks source link

Results of test_transE? #58

Closed JessicaAlphy closed 4 years ago

JessicaAlphy commented 5 years ago

When I run the test_transE code, the output goes like the followings, could you tell me what is the wrong with it?

left 0.000000 1.000000
left(filter) 0.000000 1.000000
right 0.000000 1.000000
right(filter) 0.000000 1.000000
left 0.000000 1.000000
left(filter) 0.000000 1.000000
right 0.000000 1.000000
right(filter) 0.000000 1.000000
left 0.000000 1.000000
left(filter) 0.000000 1.000000
right 0.000000 1.000000
right(filter) 0.000000 1.000000
left 0.000000 1.000000
left(filter) 0.000000 1.000000
right 0.000000 1.000000
right(filter) 0.000000 1.000000
left 0.000000 1.000000
left(filter) 0.000000 1.000000
right 0.000000 1.000000
right(filter) 0.000000 1.000000
left 0.000000 1.000000
left(filter) 0.000000 1.000000
right 0.000000 1.000000
right(filter) 0.000000 1.000000

Thanks a lot in advance.

THUCSTHanxu13 commented 4 years ago

Maybe you can use gdb to check the code on your dataset. I think both the file error and all-zero embeddings may cause this.