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

Function glorot_normal

mla/neuralnet/initializations.py:46–49  ·  view source on GitHub ↗
(shape, **kwargs)

Source from the content-addressed store, hash-verified

44
45
46def glorot_normal(shape, **kwargs):
47 fan_in, fan_out = _glorot_fan(shape)
48 s = np.sqrt(2.0 / (fan_in + fan_out))
49 return normal(shape, s)
50
51
52def glorot_uniform(shape, **kwargs):

Callers

nothing calls this directly

Calls 2

_glorot_fanFunction · 0.85
normalFunction · 0.85

Tested by

no test coverage detected