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

Function glorot_uniform

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

Source from the content-addressed store, hash-verified

50
51
52def glorot_uniform(shape, **kwargs):
53 fan_in, fan_out = _glorot_fan(shape)
54 s = np.sqrt(6.0 / (fan_in + fan_out))
55 return uniform(shape, s)
56
57
58def he_normal(shape, **kwargs):

Callers

nothing calls this directly

Calls 2

_glorot_fanFunction · 0.85
uniformFunction · 0.85

Tested by

no test coverage detected