MultiLinearTuckerInteraction
- class MultiLinearTuckerInteraction(head_dim: int = 64, relation_dim: int | None = None, tail_dim: int | None = None)[source]
Bases:
Interaction
[Tensor
,Tensor
,Tensor
]An implementation of the original (multi-linear) TuckER interaction as described [tucker1966].
Note
For small tensors, there are more efficient algorithms to compute the decomposition, e.g., http://tensorly.org/stable/modules/generated/tensorly.decomposition.Tucker.html
Initialize the Tucker interaction function.
- Parameters:
Attributes Summary
The symbolic shapes for entity representations
The symbolic shapes for relation representations
Methods Summary
forward
(h, r, t)Evaluate the interaction function.
Reset parameters the interaction function may have.
Attributes Documentation
Methods Documentation