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

Method __init__

mla/neuralnet/layers/normalization.py:14–22  ·  view source on GitHub ↗
(self, momentum=0.9, eps=1e-5, parameters=None)

Source from the content-addressed store, hash-verified

12
13class BatchNormalization(Layer, ParamMixin, PhaseMixin):
14 def __init__(self, momentum=0.9, eps=1e-5, parameters=None):
15 super().__init__()
16 self._params = parameters
17 if self._params is None:
18 self._params = Parameters()
19 self.momentum = momentum
20 self.eps = eps
21 self.ema_mean = None
22 self.ema_var = None
23
24 def setup(self, x_shape):
25 self._params.setup_weights((1, x_shape[1]))

Callers

nothing calls this directly

Calls 1

ParametersClass · 0.90

Tested by

no test coverage detected