DeepGraphLearning / KnowledgeGraphEmbedding

MIT License
1.24k stars 264 forks source link

Hi,I want to #27

Closed Aristomd closed 4 years ago

Aristomd commented 4 years ago

I want to use your rotate code, entity vectors I have trained using the GCN method, I want to further use totate to train entity relationship vectors, but your code is to use embedding_range to evenly distribute the initialized entity and relationship vectors, and I have With entity vectors, how I make phases of relations uniformly distributed in [-pi, pi]

Edward-Sun commented 4 years ago

Hi,

You can use the sin and cos function to convert values in [-pi, pi] to phases.