Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baowenbo/DAIN
/ reset
Method
reset
AverageMeter.py:8–12 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
6
self.reset()
7
8
def
reset(self):
9
self.val = 0
10
self.avg = 0
11
self.sum = 0
12
self.count = 0
13
14
def
update(self, val, n=1):
15
self.val = val
Callers
2
train
Function · 0.95
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected