8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f,keras/initializers.py,RandomUniform,__call__,#RandomUniform#Any#Any#,110
Before Change
self.seed = seed
def __call__(self, shape, dtype=None):
return K.random_uniform(shape, self.minval, self.maxval,
dtype=dtype, seed=self.seed)
def get_config(self):
return {
"minval": self.minval,
After Change
self.seed = seed
def __call__(self, shape, dtype=None):
x = K.random_uniform(shape, self.minval, self.maxval,
dtype=dtype, seed=self.seed)
if self.seed is not None:
self.seed += 1
return x
def get_config(self):
return {
"minval": self.minval,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name: RandomUniform
Method Name: __call__
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name: VarianceScaling
Method Name: __call__
Project Name: geomstats/geomstats
Commit Name: d4ce8ff983d7b3dbd08b64ef6e4a5af3135802dd
Time: 2018-04-24
Author: johan.mathe@gmail.com
File Name: examples/gradient_descent_s2.py
Class Name:
Method Name: generate_well_behaved_matrix