MCPcopy
hub / github.com/Audio-AGI/AudioSep / update

Method update

models/CLAP/training/train.py:34–38  ·  view source on GitHub ↗
(self, val, n=1)

Source from the content-addressed store, hash-verified

32 self.count = 0
33
34 def update(self, val, n=1):
35 self.val = val
36 self.sum += val * n
37 self.count += n
38 self.avg = self.sum / self.count
39
40
41def unwrap_model(model):

Callers 7

train_one_epochFunction · 0.95
save_to_dictFunction · 0.45
download_pretrainedFunction · 0.45
mainFunction · 0.45
evaluateFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected