MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / distribution_alignment

Method distribution_alignment

models/softmatch/softmatch.py:263–267  ·  view source on GitHub ↗
(self, probs)

Source from the content-addressed store, hash-verified

261
262 @torch.no_grad()
263 def distribution_alignment(self, probs):
264 # da
265 probs = probs * self.lb_prob_t / self.ulb_prob_t
266 probs = probs / probs.sum(dim=1, keepdim=True)
267 return probs.detach()
268
269
270 @torch.no_grad()

Callers 1

trainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected