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

Function get_algorithm_class

domainbed/algorithms.py:48–52  ·  view source on GitHub ↗

Return the algorithm class with the given name.

(algorithm_name)

Source from the content-addressed store, hash-verified

46
47
48def get_algorithm_class(algorithm_name):
49 """Return the algorithm class with the given name."""
50 if algorithm_name not in globals():
51 raise NotImplementedError("Algorithm not found: {}".format(algorithm_name))
52 return globals()[algorithm_name]
53
54
55class Algorithm(torch.nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected