ParameterizedComplexCombination

class ParameterizedComplexCombination(real_module, imag_module)[source]

Bases: pykeen.nn.combinations.ComplexCombination

A complex combination parametrized by the real scoring module and imaginary soring module.

Initialize the parameterized complex combination.

Parameters
  • real_module (Module) – The module used to score the combination of the real part of the entity representation and literals.

  • imag_module (Module) – The module used to score the combination of the imaginary part of the entity representation and literals.

Methods Summary

score_imag(x)

Score the combined imaginary part of the entity representation and literals with the parameterized module.

score_real(x)

Score the combined real part of the entity representation and literals with the parameterized module.

Methods Documentation

score_imag(x)[source]

Score the combined imaginary part of the entity representation and literals with the parameterized module.

Return type

FloatTensor

score_real(x)[source]

Score the combined real part of the entity representation and literals with the parameterized module.

Return type

FloatTensor