MCPcopy Create free account
hub / github.com/HKUDS/PromptMM / pairPred

Method pairPred

codes/Models.py:501–502  ·  view source on GitHub ↗
(self, embeds1, embeds2)

Source from the content-addressed store, hash-verified

499 return self.act(embeds @ self.W) + embeds
500
501 def pairPred(self, embeds1, embeds2):
502 return (self.featureExtract(embeds1) * self.featureExtract(embeds2)).sum(dim=-1)
503
504 def crossPred(self, embeds1, embeds2):
505 return self.featureExtract(embeds1) @ self.featureExtract(embeds2).T

Callers 2

pairPredictwEmbedsMethod · 0.45

Calls 1

featureExtractMethod · 0.95

Tested by

no test coverage detected