MCPcopy Create free account
hub / github.com/EryiXie/PlaneRecNet / reset

Method reset

utils/utils.py:35–38  ·  view source on GitHub ↗

Resets the MovingAverage to its initial state.

(self)

Source from the content-addressed store, hash-verified

33 self.add(elem)
34
35 def reset(self):
36 """ Resets the MovingAverage to its initial state. """
37 self.window = deque()
38 self.sum = 0
39
40 def get_avg(self):
41 """ Returns the average of the elements in the window. """

Callers 4

__init__Method · 0.95
evaluateFunction · 0.80
planerecnet.pyFile · 0.80
trainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected