make_model_cls
- make_model_cls(dimensions, interaction, interaction_kwargs=None, entity_representations_kwargs=None, relation_representations_kwargs=None)[source]
Build a model class from an interaction class hint (name or class).
- Return type:
- Parameters:
interaction (str | Interaction[HeadRepresentation, RelationRepresentation, TailRepresentation] | Type[Interaction[HeadRepresentation, RelationRepresentation, TailRepresentation]]) –
relation_representations_kwargs (Mapping[str, Any] | None) –