ComplexCombination

class ComplexCombination[source]

Bases: pykeen.nn.combinations.Combination, abc.ABC

A 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

abstract score_imag(x)[source]

Score the combined imaginary part of the entity representation and literals.

Return type

FloatTensor

abstract score_real(x)[source]

Score the combined real part of the entity representation and literals.

Return type

FloatTensor