Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LAMDA-CL/CVPR22-Fact
/ __init__
Method
__init__
utils.py:49–51 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
47
class
Averager():
48
49
def
__init__(self):
50
self.n = 0
51
self.v = 0
52
53
def
add(self, x):
54
self.v = (self.v * self.n + x) / (self.n + 1)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected