Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
11
import
theano.tensor
as
T
12
13
def
init_weight(Mi, Mo):
14
return
np.random.randn(Mi, Mo) * np.sqrt(2.0 / Mi)
15
16
17
class
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