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

Method __init__

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

Source from the content-addressed store, hash-verified

307 """Invariant Risk Minimization"""
308
309 def __init__(self, input_shape, num_classes, num_domains, hparams):
310 super(IRM, self).__init__(input_shape, num_classes, num_domains, hparams)
311 self.register_buffer('update_count', torch.tensor([0]))
312
313 @staticmethod
314 def _irm_penalty(logits, y):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected