MCPcopy Create free account
hub / github.com/cjrd/self-supervised-pretraining / reduce

Function reduce

utils/plot_augmentation.py:97–106  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

95 return plt.subplots(1, 1, figsize=set_size(width))
96
97def reduce(data):
98 result = data['result'].tolist()
99
100 best = 0
101 for value in result:
102 if best < float(value):
103 best = float(value)
104
105 data.result = best
106 return data, best
107
108def main(args):
109

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected