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

Method __init__

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

Source from the content-addressed store, hash-verified

910 """
911
912 def __init__(self, input_shape, num_classes, num_domains, hparams):
913 super(SD, self).__init__(input_shape, num_classes, num_domains, hparams)
914 self.sd_reg = hparams["sd_reg"]
915
916 def update(self, minibatches, unlabeled=None):
917 all_x = torch.cat([x for x, y in minibatches])

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected