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

Function init_weight

rnn_class/batch_units.py:13–14  ·  view source on GitHub ↗
(Mi, Mo)

Source from the content-addressed store, hash-verified

11import theano.tensor as T
12
13def init_weight(Mi, Mo):
14 return np.random.randn(Mi, Mo) * np.sqrt(2.0 / Mi)
15
16
17class SimpleRecurrentLayer:

Callers 3

__init__Method · 0.70
__init__Method · 0.70
__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected