MCPcopy Create free account
hub / github.com/baowenbo/DAIN / __init__

Method __init__

AverageMeter.py:5–6  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3class AverageMeter(object):
4 """Computes and stores the average and current value"""
5 def __init__(self):
6 self.reset()
7
8 def reset(self):
9 self.val = 0

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected