ZerosΒΆ
Constant initializer which always returns zeros.
ExamplesΒΆ
>>> from river import optim
>>> init = optim.initializers.Zeros()
>>> init(shape=1)
0.0
>>> init(shape=2)
array([0., 0.])
MethodsΒΆ
call
Returns a fresh set of weights.
Parameters
- shape β defaults to
1