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

Function he_normal

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

Source from the content-addressed store, hash-verified

56
57
58def he_normal(shape, **kwargs):
59 fan_in, fan_out = _glorot_fan(shape)
60 s = np.sqrt(2.0 / fan_in)
61 return normal(shape, s)
62
63
64def he_uniform(shape, **kwargs):

Callers

nothing calls this directly

Calls 2

_glorot_fanFunction · 0.85
normalFunction · 0.85

Tested by

no test coverage detected