MCPcopy Create free account
hub / github.com/alexrame/fishr / __init__

Method __init__

domainbed/algorithms.py:365–367  ·  view source on GitHub ↗
(self, input_shape, num_classes, num_domains, hparams)

Source from the content-addressed store, hash-verified

363 """V-REx algorithm from http://arxiv.org/abs/2003.00688"""
364
365 def __init__(self, input_shape, num_classes, num_domains, hparams):
366 super(VREx, self).__init__(input_shape, num_classes, num_domains, hparams)
367 self.register_buffer('update_count', torch.tensor([0]))
368
369 def update(self, minibatches, unlabeled=None):
370 if self.update_count >= self.hparams["vrex_penalty_anneal_iters"]:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected