MCPcopy Create free account
hub / github.com/MegaScenes/nvs / __init__

Method __init__

evaluation/utils.py:5–9  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3 """Computes and stores the average and current value"""
4
5 def __init__(self):
6 self.val = 0
7 self.avg = 0
8 self.sum = 0
9 self.count = 0.0
10
11 def reset(self):
12 self.val = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected