93ff2240f329431e77f3e613a8dbfaab911c82e9,keras/layers/recurrent.py,JZS2,__init__,#JZS2#Any#Any#Any#Any#Any#Any#Any#Any#Any#,494
Before Change
// P_h used to project X onto different dimension
P = np.ones((self.input_dim, self.output_dim), dtype=theano.config.floatX)
P = P / np.linalg.norm(P, axis=0)
self.Pmat = theano.shared(P, name=None)
self.params = [
self.W_z, self.U_z, self.b_z,
After Change
self.Pmat = theano.shared(np.identity(self.output_dim), name=None)
else:
P = np.random.binomial(1, 0.5, size=(self.input_dim, self.output_dim)) * 2 - 1
P = 1 / np.sqrt(self.input_dim) * P
self.Pmat = theano.shared(P, name=None)
self.params = [
self.W_z, self.U_z, self.b_z,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: keras-team/keras
Commit Name: 93ff2240f329431e77f3e613a8dbfaab911c82e9
Time: 2015-06-25
Author: lchen3@gmail.com
File Name: keras/layers/recurrent.py
Class Name: JZS2
Method Name: __init__
Project Name: tensorly/tensorly
Commit Name: b3054cce5cc7fcc61fd6f8408c1ed23acf05631a
Time: 2018-12-04
Author: asmeurer@gmail.com
File Name: tensorly/decomposition/candecomp_parafac.py
Class Name:
Method Name: parafac
Project Name: tensorly/tensorly
Commit Name: cf0d7714ee90c4c9469c30b72992be17049c7591
Time: 2016-10-21
Author: jean.kossaifi@gmail.com
File Name: tensorly/decomposition/_tucker.py
Class Name:
Method Name: tucker
Project Name: keras-team/keras
Commit Name: 93ff2240f329431e77f3e613a8dbfaab911c82e9
Time: 2015-06-25
Author: lchen3@gmail.com
File Name: keras/layers/recurrent.py
Class Name: JZS1
Method Name: __init__