MCPcopy Create free account
hub / github.com/RUCDM/KB4Rec / forward_triple

Method forward_triple

Projects/UPGAN/code/Model/DistMult.py:64–80  ·  view source on GitHub ↗

:param heads: (B, ) :param rels: (B, ) :param tails: (B, N) :return:

(self, heads, rels, tails)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

gen_stepMethod · 0.45
gen_sampleMethod · 0.45

Calls 2

get_emb_allMethod · 0.95
encode_kgMethod · 0.95

Tested by

no test coverage detected