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

Method __init__

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

Source from the content-addressed store, hash-verified

849class RSC(ERM):
850
851 def __init__(self, input_shape, num_classes, num_domains, hparams):
852 super(RSC, self).__init__(input_shape, num_classes, num_domains, hparams)
853 self.drop_f = (1 - hparams['rsc_f_drop_factor']) * 100
854 self.drop_b = (1 - hparams['rsc_b_drop_factor']) * 100
855 self.num_classes = num_classes
856
857 def update(self, minibatches, unlabeled=None):
858 device = "cuda" if minibatches[0][0].is_cuda else "cpu"

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected