e418fc6937d96ccf81e021fd35d00fec68c40610,keras/optimizers.py,Adadelta,get_updates,#Adadelta#Any#Any#Any#,286

Before Change



    def get_updates(self, params, constraints, loss):
        grads = self.get_gradients(loss, params)
        shapes = [x.shape for x in K.batch_get_value(params)]
        accumulators = [K.zeros(shape) for shape in shapes]
        delta_accumulators = [K.zeros(shape) for shape in shapes]
        self.weights = accumulators + delta_accumulators

After Change



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

Frequency: 7

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Adadelta
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: SGD
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Adamax
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Adagrad
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Adam
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: Nadam
Method Name: get_updates


Project Name: keras-team/keras
Commit Name: e418fc6937d96ccf81e021fd35d00fec68c40610
Time: 2016-08-24
Author: francois.chollet@gmail.com
File Name: keras/optimizers.py
Class Name: RMSprop
Method Name: get_updates