7374442a1c1507051fb1f9ee1ef774c9a9654d8b,keras/layers/recurrent.py,LSTM,build,#LSTM#Any#,954
Before Change
regularizer=self.bias_regularizer,
constraint=self.bias_constraint)
if self.unit_forget_bias:
self.bias += K.concatenate([K.zeros((self.units,)),
K.ones((self.units,)),
K.zeros((self.units * 2,))])
else:
self.bias = None
self.kernel_i = self.kernel[:, :self.units]
After Change
regularizer=self.bias_regularizer,
constraint=self.bias_constraint)
if self.unit_forget_bias:
bias_value = np.zeros((self.units * 4,))
bias_value[self.units: self.units * 2] = 1.
K.set_value(self.bias, bias_value)
else:
self.bias = None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: keras-team/keras
Commit Name: 7374442a1c1507051fb1f9ee1ef774c9a9654d8b
Time: 2017-03-12
Author: francois.chollet@gmail.com
File Name: keras/layers/recurrent.py
Class Name: LSTM
Method Name: build
Project Name: keras-team/keras
Commit Name: 6e289d71866b4782dbe752adce1f26ea895f5dd9
Time: 2017-03-12
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional_recurrent.py
Class Name: ConvLSTM2D
Method Name: build
Project Name: deepchem/deepchem
Commit Name: 624dfb1a1263e5539d30112e2ba7344957b9b20f
Time: 2020-07-20
Author: peastman@stanford.edu
File Name: deepchem/feat/coulomb_matrices.py
Class Name: CoulombMatrix
Method Name: coulomb_matrix