MCPcopy Create free account
hub / github.com/AdaptiveMotorControlLab/FMPose3D / AccumLoss

Class AccumLoss

fmpose3d/common/utils.py:212–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210
211
212class AccumLoss(object):
213 def __init__(self):
214 self.val = 0
215 self.avg = 0
216 self.sum = 0
217 self.count = 0
218
219 def update(self, val, n=1):
220 self.val = val
221 self.sum += val
222 self.count += n
223 self.avg = self.sum / self.count
224
225
226def get_variable(split, target):

Callers 5

define_error_listFunction · 0.70
print_error_actionFunction · 0.70
stepFunction · 0.50
trainFunction · 0.50
print_error_actionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected