ComplexCombination¶
- class ComplexCombination[source]¶
Bases:
pykeen.nn.combinations.Combination,abc.ABCA mid-level base class for combinations of complex-valued vectors.
Initializes internal Module state, shared by both nn.Module and ScriptModule.
Methods Summary
forward(x, literal)Split the complex vector, combine the representation parts and literal, score, then recombine.
score_imag(x)Score the combined imaginary part of the entity representation and literals.
score_real(x)Score the combined real part of the entity representation and literals.
Methods Documentation
- forward(x, literal)[source]¶
Split the complex vector, combine the representation parts and literal, score, then recombine.
- Return type
FloatTensor