MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / Layer

Class Layer

mla/neuralnet/layers/basic.py:11–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11class 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
27class ParamMixin(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected