Representation

Representation modules.

Classes

Representation(max_id[, shape, normalizer, ...])

A base class for obtaining representations for entities/relations.

Embedding([max_id, num_embeddings, ...])

Trainable embeddings.

LowRankRepresentation(*, max_id, shape[, ...])

Low-rank embedding factorization.

CompGCNLayer(input_dim[, output_dim, ...])

A single layer of the CompGCN model.

CombinedCompGCNRepresentations(*, ...[, ...])

A sequence of CompGCN layers.

PartitionRepresentation(assignment[, shape, ...])

A partition of the indices into different representation modules.

BackfillRepresentation(max_id, base_ids[, ...])

A variant of a partition representation that is easily applicable to a single base representation.

SingleCompGCNRepresentation(combined[, ...])

A wrapper around the combined representation module.

SubsetRepresentation(max_id[, base, ...])

A representation module, which only exposes a subset of representations of its base.

CombinedRepresentation(max_id[, shape, ...])

A combined representation.

TensorTrainRepresentation([assignment, ...])

A tensor factorization of representations.

TransformedRepresentation(transformation[, ...])

A (learnable) transformation upon base representations.

TextRepresentation(labels[, max_id, shape, ...])

Textual representations using a text encoder on labels.

CachedTextRepresentation(identifiers[, cache])

Textual representations for datasets with identifiers that can be looked up with a TextCache.

WikidataTextRepresentation(identifiers[, cache])

Textual representations for datasets grounded in Wikidata.

BiomedicalCURIERepresentation(identifiers[, ...])

Textual representations for datasets grounded with biomedical CURIEs.

Class Inheritance Diagram

digraph inheritance007a15c843 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "ABC" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Helper class that provides a standard way to create an ABC using"]; "BackfillRepresentation" [URL="../../api/pykeen.nn.representation.BackfillRepresentation.html#pykeen.nn.representation.BackfillRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A variant of a partition representation that is easily applicable to a single base representation."]; "PartitionRepresentation" -> "BackfillRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BiomedicalCURIERepresentation" [URL="../../api/pykeen.nn.representation.BiomedicalCURIERepresentation.html#pykeen.nn.representation.BiomedicalCURIERepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Textual representations for datasets grounded with biomedical CURIEs."]; "CachedTextRepresentation" -> "BiomedicalCURIERepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CachedTextRepresentation" [URL="../../api/pykeen.nn.representation.CachedTextRepresentation.html#pykeen.nn.representation.CachedTextRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Textual representations for datasets with identifiers that can be looked up with a :class:`TextCache`."]; "TextRepresentation" -> "CachedTextRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CombinedCompGCNRepresentations" [URL="../../api/pykeen.nn.representation.CombinedCompGCNRepresentations.html#pykeen.nn.representation.CombinedCompGCNRepresentations",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A sequence of CompGCN layers."]; "Module" -> "CombinedCompGCNRepresentations" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CombinedRepresentation" [URL="../../api/pykeen.nn.representation.CombinedRepresentation.html#pykeen.nn.representation.CombinedRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A combined representation."]; "Representation" -> "CombinedRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "CompGCNLayer" [URL="../../api/pykeen.nn.representation.CompGCNLayer.html#pykeen.nn.representation.CompGCNLayer",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A single layer of the CompGCN model."]; "Module" -> "CompGCNLayer" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Embedding" [URL="../../api/pykeen.nn.representation.Embedding.html#pykeen.nn.representation.Embedding",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Trainable embeddings."]; "Representation" -> "Embedding" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ExtraReprMixin" [URL="../utils.html#pykeen.utils.ExtraReprMixin",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A mixin for modules with hierarchical `extra_repr`."]; "LowRankRepresentation" [URL="../../api/pykeen.nn.representation.LowRankRepresentation.html#pykeen.nn.representation.LowRankRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Low-rank embedding factorization."]; "Representation" -> "LowRankRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Module" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="Base class for all neural network modules."]; "PartitionRepresentation" [URL="../../api/pykeen.nn.representation.PartitionRepresentation.html#pykeen.nn.representation.PartitionRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A partition of the indices into different representation modules."]; "Representation" -> "PartitionRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Representation" [URL="../../api/pykeen.nn.representation.Representation.html#pykeen.nn.representation.Representation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base class for obtaining representations for entities/relations."]; "Module" -> "Representation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ExtraReprMixin" -> "Representation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ABC" -> "Representation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SingleCompGCNRepresentation" [URL="../../api/pykeen.nn.representation.SingleCompGCNRepresentation.html#pykeen.nn.representation.SingleCompGCNRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A wrapper around the combined representation module."]; "Representation" -> "SingleCompGCNRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SubsetRepresentation" [URL="../../api/pykeen.nn.representation.SubsetRepresentation.html#pykeen.nn.representation.SubsetRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A representation module, which only exposes a subset of representations of its base."]; "Representation" -> "SubsetRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TensorTrainRepresentation" [URL="../../api/pykeen.nn.representation.TensorTrainRepresentation.html#pykeen.nn.representation.TensorTrainRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A tensor factorization of representations."]; "Representation" -> "TensorTrainRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TextRepresentation" [URL="../../api/pykeen.nn.representation.TextRepresentation.html#pykeen.nn.representation.TextRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Textual representations using a text encoder on labels."]; "Representation" -> "TextRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TransformedRepresentation" [URL="../../api/pykeen.nn.representation.TransformedRepresentation.html#pykeen.nn.representation.TransformedRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A (learnable) transformation upon base representations."]; "Representation" -> "TransformedRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WikidataTextRepresentation" [URL="../../api/pykeen.nn.representation.WikidataTextRepresentation.html#pykeen.nn.representation.WikidataTextRepresentation",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Textual representations for datasets grounded in Wikidata."]; "CachedTextRepresentation" -> "WikidataTextRepresentation" [arrowsize=0.5,style="setlinewidth(0.5)"]; }