MCPcopy
hub / github.com/junyanz/iGAN / __init__

Method __init__

lib/updates.py:98–100  ·  view source on GitHub ↗
(self, lr=0.01, momentum=0.9, *args, **kwargs)

Source from the content-addressed store, hash-verified

96class Momentum(Update):
97
98 def __init__(self, lr=0.01, momentum=0.9, *args, **kwargs):
99 Update.__init__(self, *args, **kwargs)
100 self.__dict__.update(locals())
101
102 def __call__(self, params, cost):
103 updates = []

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
updateMethod · 0.45

Tested by

no test coverage detected