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

Function reduce

utils/plot_augmentation_modified.py:120–129  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

118 return plt.subplots(1, 1, figsize=set_size(width))
119
120def reduce(data):
121 result = data['result'].tolist()
122
123 best = 0
124 for value in result:
125 if best < float(value):
126 best = float(value)
127
128 data.result = best
129 return data, best
130
131def main(args):
132

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected