Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CausalLearning/robust-unlearnable-examples
/ update
Method
update
utils/generic.py:22–25 ·
view source on GitHub ↗
(self, val, cnt)
Source
from the content-addressed store, hash-verified
20
self.mean = 0
21
22
def
update(self, val, cnt):
23
self.cnt += cnt
24
self.sum += val * cnt
25
self.mean = self.sum / self.cnt
26
27
def
average(self):
28
return
self.mean
Callers
1
evaluate
Function · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected