ComplExLiteralCombination¶
- class ComplExLiteralCombination(entity_embedding_dim, literal_embedding_dim, input_dropout=0.0, activation='tanh')[source]¶
Bases:
pykeen.nn.combinations.ParameterizedComplexCombinationThe linear/dropout/tanh combination used in
pykeen.models.ComplExLiteral.Instantiate the
ParameterizedComplexCombinationwith aLinearDropoutfor real and complex.- Parameters
entity_embedding_dim (
int) – The dimension of the entity representations to which literals are concatenatedliteral_embedding_dim (
int) – The dimension of the literals that are concatenatedinput_dropout (
float) – The dropout probability of an element to be zeroed.activation (
Union[str,Module,Type[Module],None]) – The activation function, resolved bypykeen.utils.activation_resolver.
This class uses a
torch.nn.Tanhby default for the activation to theLinearDropoutas described by [kristiadi2018].