InductiveERModel
- class InductiveERModel(*, triples_factory, entity_representations=None, entity_representations_kwargs=None, validation_factory, testing_factory=None, **kwargs)[source]
Bases:
ERModel
A base class for inductive models.
This model assumes a shared set of relations between all triple sets (e.g., training and validation), and a separate inference factory used during validation. During testing time, either the validation factory is re-used or another separate testing factory may be provided.
Initialize the inductive model.
- Parameters:
triples_factory (
CoreTriplesFactory
) – the (training) factoryentity_representations (
Union
[str
,Representation
,Type
[Representation
],None
,Sequence
[Union
[str
,Representation
,Type
[Representation
],None
]]]) – the training entity representationsentity_representations_kwargs (
Union
[Mapping
[str
,Any
],None
,Sequence
[Optional
[Mapping
[str
,Any
]]]]) – additional keyword-based parameters for the training entity representationsvalidation_factory (
CoreTriplesFactory
) – the validation factorytesting_factory (
Optional
[CoreTriplesFactory
]) – the testing factory. If None, the validation factory is re-used, i.e., validation and test entities come from the same (unseen) set of entities.kwargs – additional keyword-based parameters passed to
ERModel.__init__()