MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / init_weights

Function init_weights

unsupervised_class2/util.py:37–39  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

35
36
37def init_weights(shape):
38 w = np.random.randn(*shape) / np.sqrt(sum(shape))
39 return w.astype(np.float32)

Callers 7

__init__Method · 0.90
fitMethod · 0.90
__init__Method · 0.90
fitMethod · 0.90
fitMethod · 0.90
fitMethod · 0.90
fit_to_inputMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected