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

Method run_acc

domainbed/model_selection.py:134–141  ·  view source on GitHub ↗
(self, records)

Source from the content-addressed store, hash-verified

132
133 @classmethod
134 def run_acc(self, records):
135 step_accs = records.group('step').map(lambda step, step_records:
136 self._step_acc(step_records)
137 ).filter_not_none()
138 if len(step_accs):
139 return step_accs.argmax('val_acc')
140 else:
141 return None

Callers

nothing calls this directly

Calls 5

_step_accMethod · 0.95
filter_not_noneMethod · 0.80
mapMethod · 0.80
groupMethod · 0.80
argmaxMethod · 0.80

Tested by

no test coverage detected