MCPcopy Create free account
hub / github.com/DingLei14/WiCoNet / initialize

Method initialize

utils/utils.py:123–128  ·  view source on GitHub ↗
(self, val, count, weight)

Source from the content-addressed store, hash-verified

121 self.count = None
122
123 def initialize(self, val, count, weight):
124 self.val = val
125 self.avg = val
126 self.count = count
127 self.sum = val * weight
128 self.initialized = True
129
130 def update(self, val, count=1, weight=1):
131 if not self.initialized:

Callers 1

updateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected