33ed943ad59fc99f469c0d9d52bfd8462542bf74,keras/optimizers.py,Adadelta,get_updates,#Adadelta#Any#Any#Any#,149

Before Change


    def get_updates(self, params, constraints, loss):
        grads = self.get_gradients(loss, params)
        accumulators = [shared_zeros(p.get_value().shape) for p in params]
        delta_accumulators = [shared_zeros(p.get_value().shape) for p in params]
        self.updates = []

        for p, g, a, d_a, c in zip(params, grads, accumulators,

After Change



    def get_updates(self, params, constraints, loss):
        grads = self.get_gradients(loss, params)
        accumulators = [K.variable(np.zeros(K.get_value(p).shape)) for p in params]
        delta_accumulators = [K.variable(np.zeros(K.get_value(p).shape)) for p in params]
        self.updates = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: keras-team/keras
Commit Name: 33ed943ad59fc99f469c0d9d52bfd8462542bf74
Time: 2015-11-15
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Adadelta
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: 33ed943ad59fc99f469c0d9d52bfd8462542bf74
Time: 2015-11-15
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: RMSprop
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: 33ed943ad59fc99f469c0d9d52bfd8462542bf74
Time: 2015-11-15
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: SGD
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: 33ed943ad59fc99f469c0d9d52bfd8462542bf74
Time: 2015-11-15
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Adagrad
Method Name: get_updates