HolE¶
- class ampligraph.latent_features.layers.scoring.HolE(*args: Any, **kwargs: Any)¶
Holographic Embeddings (HolE) scoring layer.
The HolE model [NRP+16] as re-defined by Hayashi et al. [HS17]:
\[f_{HolE}= \frac{2}{k} \, f_{ComplEx}\]where \(k\) is the size of the embeddings.
Attributes
class_paramsexternal_paramsnameMethods
__init__(k)Initializes the scoring layer.
get_config()- __init__(k)¶
Initializes the scoring layer.
- Parameters
k (int) – Embedding size.
max_rel_size (int) – This value specifies the number of relations in the KG. It is essential only for
RotatEscoring layer (default: None).
- get_config()¶