SingleCompGCNRepresentation

class SingleCompGCNRepresentation(combined, position=0, shape=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 (Union[int, Sequence[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