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

Function uniform

mla/neuralnet/initializations.py:14–15  ·  view source on GitHub ↗
(shape, scale=0.5)

Source from the content-addressed store, hash-verified

12
13
14def uniform(shape, scale=0.5):
15 return np.random.uniform(size=shape, low=-scale, high=scale)
16
17
18def zero(shape, **kwargs):

Callers 2

glorot_uniformFunction · 0.85
he_uniformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected