LiteralModel
- class LiteralModel(triples_factory, interaction, entity_representations=None, entity_representations_kwargs=None, **kwargs)[source]
Bases:
pykeen.models.nbase.ERModel[pykeen.typing.HeadRepresentation,pykeen.typing.RelationRepresentation,pykeen.typing.TailRepresentation]Base class for models with entity literals that uses combinations from
pykeen.nn.combinations.Initialize the model.
- Parameters
triples_factory (
TriplesNumericLiteralsFactory) – the (training) triples factoryinteraction (
LiteralInteraction) – the interaction functionentity_representations (
Union[str,Representation,Type[Representation],None,Sequence[Union[str,Representation,Type[Representation],None]]]) – the entity representations (excluding the ones from literals)entity_representations_kwargs (
Union[Mapping[str,Any],None,Sequence[Optional[Mapping[str,Any]]]]) – the entity representations keyword-based parameters (excluding the ones from literals)kwargs – additional keyword-based parameters passed to
ERModel.__init__()