besskge.embedding
Utilities for initializing and managing entity/relation embedding tables.
Functions
|
Initialize embeddings according to normal distribution with mean 0. |
|
Initialize embeddings according to symmetric uniform distribution. |
|
Initialize embeddings according to uniform distribution and normalize so that each row has norm 1. |
|
Initialize tensor with each entry being a uniformly distributed phase between 0 and \(2 \pi\). |
|
Initialize embeddings according to Xavier normal scheme, with fan_in = 0, fan_out=row_size. |
|
Initialize entity embedding table. |
|
Initialize relation embedding table. |
Refactor sharded entity embedding table to pass from one entity sharding to a different one. |