Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TPCD/DCCL
/ update
Method
update
project_utils/general_utils.py:24–29 ·
view source on GitHub ↗
(self, val, n=1)
Source
from the content-addressed store, hash-verified
22
self.count = 0
23
24
def
update(self, val, n=1):
25
26
self.val = val
27
self.sum += val * n
28
self.count += n
29
self.avg = self.sum / self.count
30
31
32
def
seed_torch(seed=1029):
Callers
7
train
Function · 0.95
extract_features
Function · 0.95
extract_features2
Function · 0.95
train
Function · 0.95
visualize
Function · 0.45
visualize2
Function · 0.45
visualize3
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected