e418fc6937d96ccf81e021fd35d00fec68c40610,keras/optimizers.py,Adamax,get_updates,#Adamax#Any#Any#Any#,404

Before Change


        t = self.iterations + 1
        lr_t = self.lr / (1. - K.pow(self.beta_1, t))

        shapes = [x.shape for x in K.batch_get_value(params)]
        // zero init of 1st moment
        ms = [K.zeros(shape) for shape in shapes]
        // zero init of exponentially weighted infinity norm
        us = [K.zeros(shape) for shape in shapes]
        self.weights = [self.iterations] + ms + us

        for p, g, m, u in zip(params, grads, ms, us):

After Change


        t = self.iterations + 1
        lr_t = self.lr / (1. - K.pow(self.beta_1, t))

        shapes = [K.get_variable_shape(p) for p in params]
        // zero init of 1st moment
        ms = [K.zeros(shape) for shape in shapes]
        // zero init of exponentially weighted infinity norm
        us = [K.zeros(shape) for shape in shapes]
        self.weights = [self.iterations] + ms + us

        for p, g, m, u in zip(params, grads, ms, us):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 12

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: 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: 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: 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: 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: 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: 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: RMSprop
Method Name: get_updates