(self, lr=0.01, momentum=0.9, *args, **kwargs)
| 96 | class 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 = [] |