MCPcopy Create free account
hub / github.com/DeepGraphLearning/KnowledgeGraphEmbedding / forward

Method forward

codes/model.py:71–163  ·  view source on GitHub ↗

Forward function that calculate the score of a batch of triples. In the 'single' mode, sample is a batch of triple. In the 'head-batch' or 'tail-batch' mode, sample consists two part. The first part is usually the positive sample. And the second part is the e

(self, sample, mode='single')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected