MCPcopy Create free account
hub / github.com/Royalvice/DocDiff / __init__

Method __init__

model/DocDiff.py:341–343  ·  view source on GitHub ↗
(self, beta)

Source from the content-addressed store, hash-verified

339
340class EMA():
341 def __init__(self, beta):
342 super().__init__()
343 self.beta = beta
344
345 def update_model_average(self, ma_model, current_model):
346 for current_params, ma_params in zip(current_model.parameters(), ma_model.parameters()):

Callers 9

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected