MCPcopy Index your code
hub / github.com/OpenPPL/ppq / finalize

Method finalize

ppq/quantization/algorithm/exprimental.py:46–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

44 self.rewards[self.last_selected].push(rewards)
45
46 def finalize(self) -> bool:
47 self.config.scale = self.reference * self.arms[np.argmax([ema.pop() for ema in self.rewards])]
48
49 def withdraw(self):
50 self.config.scale = self.reference

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected