| 9 | |
| 10 | |
| 11 | class Layer(object): |
| 12 | def setup(self, X_shape): |
| 13 | """Allocates initial weights.""" |
| 14 | pass |
| 15 | |
| 16 | def forward_pass(self, x): |
| 17 | raise NotImplementedError() |
| 18 | |
| 19 | def backward_pass(self, delta): |
| 20 | raise NotImplementedError() |
| 21 | |
| 22 | def shape(self, x_shape): |
| 23 | """Returns shape of the current layer.""" |
| 24 | raise NotImplementedError() |
| 25 | |
| 26 | |
| 27 | class ParamMixin(object): |
nothing calls this directly
no outgoing calls
no test coverage detected