Weighting

Various edge weighting implementations for R-GCN.

Classes

EdgeWeighting(**kwargs)

Base class for edge weightings.

InverseInDegreeEdgeWeighting(**kwargs)

Normalize messages by inverse in-degree.

InverseOutDegreeEdgeWeighting(**kwargs)

Normalize messages by inverse out-degree.

SymmetricEdgeWeighting(**kwargs)

Normalize messages by product of inverse sqrt of in-degree and out-degree.

AttentionEdgeWeighting(message_dim[, ...])

Message weighting by attention.

Class Inheritance Diagram

digraph inheritance3f3c363e2e { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AttentionEdgeWeighting" [URL="../../api/pykeen.nn.weighting.AttentionEdgeWeighting.html#pykeen.nn.weighting.AttentionEdgeWeighting",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="Message weighting by attention."]; "EdgeWeighting" -> "AttentionEdgeWeighting" [arrowsize=0.5,style="setlinewidth(0.5)"]; "EdgeWeighting" [URL="../../api/pykeen.nn.weighting.EdgeWeighting.html#pykeen.nn.weighting.EdgeWeighting",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="Base class for edge weightings."]; "Module" -> "EdgeWeighting" [arrowsize=0.5,style="setlinewidth(0.5)"]; "InverseInDegreeEdgeWeighting" [URL="../../api/pykeen.nn.weighting.InverseInDegreeEdgeWeighting.html#pykeen.nn.weighting.InverseInDegreeEdgeWeighting",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="Normalize messages by inverse in-degree."]; "EdgeWeighting" -> "InverseInDegreeEdgeWeighting" [arrowsize=0.5,style="setlinewidth(0.5)"]; "InverseOutDegreeEdgeWeighting" [URL="../../api/pykeen.nn.weighting.InverseOutDegreeEdgeWeighting.html#pykeen.nn.weighting.InverseOutDegreeEdgeWeighting",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="Normalize messages by inverse out-degree."]; "EdgeWeighting" -> "InverseOutDegreeEdgeWeighting" [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."]; "SymmetricEdgeWeighting" [URL="../../api/pykeen.nn.weighting.SymmetricEdgeWeighting.html#pykeen.nn.weighting.SymmetricEdgeWeighting",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="Normalize messages by product of inverse sqrt of in-degree and out-degree."]; "EdgeWeighting" -> "SymmetricEdgeWeighting" [arrowsize=0.5,style="setlinewidth(0.5)"]; }