MCPcopy Create free account
hub / github.com/JIA-Lab-research/LISA / __init__

Method __init__

utils/utils.py:55–59  ·  view source on GitHub ↗
(self, name, fmt=":f", summary_type=Summary.AVERAGE)

Source from the content-addressed store, hash-verified

53 """Computes and stores the average and current value"""
54
55 def __init__(self, name, fmt=":f", summary_type=Summary.AVERAGE):
56 self.name = name
57 self.fmt = fmt
58 self.summary_type = summary_type
59 self.reset()
60
61 def reset(self):
62 self.val = 0

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected