Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TPCD/DCCL
/ reset
Method
reset
project_utils/general_utils.py:17–22 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
15
self.reset()
16
17
def
reset(self):
18
19
self.val = 0
20
self.avg = 0
21
self.sum = 0
22
self.count = 0
23
24
def
update(self, val, n=1):
25
Callers
1
__init__
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected