SingleCompGCNRepresentation

class SingleCompGCNRepresentation(combined: CombinedCompGCNRepresentations, position: int = 0, shape: int | Sequence[int] | None = None, **kwargs)[source]

Bases: Representation

A wrapper around the combined representation module.

Initialize the module.

Parameters:
  • combined (CombinedCompGCNRepresentations) – The combined representations.

  • position (int) – The position, either 0 for entities, or 1 for relations.

  • shape (OneOrSequence[int] | None) – The shape of an individual representation.

  • kwargs – additional keyword-based parameters passed to super.__init__

Raises:

ValueError – If an invalid value is given for the position