Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HobbitLong/PyContrast
/ __init__
Method
__init__
pycontrast/learning/util.py:8–9 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
6
class
AverageMeter(object):
7
""
"Computes and stores the average and current value"
""
8
def
__init__(self):
9
self.reset()
10
11
def
reset(self):
12
self.val = 0
Callers
nothing calls this directly
Calls
1
reset
Method · 0.95
Tested by
no test coverage detected