MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / DistMult

Method DistMult

python/graphvite/application/network.py:99–102  ·  view source on GitHub ↗
(heads, relations, tails)

Source from the content-addressed store, hash-verified

97
98 @staticmethod
99 def DistMult(heads, relations, tails):
100 x = heads * relations * tails
101 score = x.sum(dim=1)
102 return score
103
104 @staticmethod
105 def ComplEx(heads, relations, tails):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected