MCPcopy Index your code
hub / github.com/lisa-lab/DeepLearningTutorials / ortho_weight

Function ortho_weight

code/lstm.py:132–135  ·  view source on GitHub ↗
(ndim)

Source from the content-addressed store, hash-verified

130
131
132def ortho_weight(ndim):
133 W = numpy.random.randn(ndim, ndim)
134 u, s, v = numpy.linalg.svd(W)
135 return u.astype(config.floatX)
136
137
138def param_init_lstm(options, params, prefix='lstm'):

Callers 1

param_init_lstmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected