MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / init_weight

Function init_weight

rnn_class/util.py:17–18  ·  view source on GitHub ↗
(Mi, Mo)

Source from the content-addressed store, hash-verified

15from datetime import datetime
16
17def init_weight(Mi, Mo):
18 return np.random.randn(Mi, Mo) / np.sqrt(Mi + Mo)
19
20def all_parity_pairs(nbit):
21 # total number of samples (Ntotal) will be a multiple of 100

Callers 15

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

Calls

no outgoing calls

Tested by

no test coverage detected