e418fc6937d96ccf81e021fd35d00fec68c40610,keras/optimizers.py,Nadam,get_updates,#Nadam#Any#Any#Any#,473

Before Change


        m_schedule_next = self.m_schedule * momentum_cache_t * momentum_cache_t_1
        self.updates.append((self.m_schedule, m_schedule_new))

        shapes = [x.shape for x in K.batch_get_value(params)]
        ms = [K.zeros(shape) for shape in shapes]
        vs = [K.zeros(shape) for shape in shapes]

After Change


        m_schedule_next = self.m_schedule * momentum_cache_t * momentum_cache_t_1
        self.updates.append((self.m_schedule, m_schedule_new))

        shapes = [K.get_variable_shape(p) for p in params]
        ms = [K.zeros(shape) for shape in shapes]
        vs = [K.zeros(shape) for shape in shapes]

        self.weights = [self.iterations] + ms + vs
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: 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: 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


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