MCPcopy
hub / github.com/jindongwang/transferlearning / alg_loss_dict

Function alg_loss_dict

code/DeepDG/utils/util.py:45–58  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

43
44
45def alg_loss_dict(args):
46 loss_dict = {'ANDMask': ['total'],
47 'CORAL': ['class', 'coral', 'total'],
48 'DANN': ['class', 'dis', 'total'],
49 'ERM': ['class'],
50 'Mixup': ['class'],
51 'MLDG': ['total'],
52 'MMD': ['class', 'mmd', 'total'],
53 'GroupDRO': ['group'],
54 'RSC': ['class'],
55 'VREx': ['loss', 'nll', 'penalty'],
56 'DIFEX': ['class', 'dist', 'exp', 'align', 'total']
57 }
58 return loss_dict[args.algorithm]
59
60
61def print_args(args, print_list):

Callers 1

train.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected