Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Topdu/OpenOCR
/ update
Method
update
tools/utils/utility.py:160–165 ·
view source on GitHub ↗
update
(self, val, n=1)
Source
from the content-addressed store, hash-verified
158
self.count = 0
159
160
def
update(self, val, n=1):
161
""
"update"
""
162
self.val = val
163
self.sum += val * n
164
self.count += n
165
self.avg = self.sum / self.count
Callers
1
train
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected