(self, lr=0.01, momentum=0.9, *args, **kwargs)
| 74 | class Momentum(Update): |
| 75 | |
| 76 | def __init__(self, lr=0.01, momentum=0.9, *args, **kwargs): |
| 77 | Update.__init__(self, *args, **kwargs) |
| 78 | self.__dict__.update(locals()) |
| 79 | |
| 80 | def __call__(self, params, cost): |
| 81 | updates = [] |