MCPcopy Create free account
hub / github.com/dailenson/SDT / random_double_sampling

Method random_double_sampling

models/model.py:58–77  ·  view source on GitHub ↗

Sample the positive pair (i.e., o and o^+) within a character by per-sample shuffling. Per-sample shuffling is done by argsort random noise. x: [L, B, N, D], sequence return o [B, N, 1, D], o^+ [B, N, 1, D]

(self, x, ratio=0.25)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected