08f6bdeb5652550f36210f64aefda3d0d41e2d79,keras/optimizers.py,RMSprop,__init__,#RMSprop#Any#Any#Any#Any#,238

Before Change


            self.rho = K.variable(rho, name="rho")
            self.decay = K.variable(decay, name="decay")
            self.iterations = K.variable(0, dtype="int64", name="iterations")
        if epsilon is None:
            epsilon = K.epsilon()
        self.epsilon = epsilon
        self.initial_decay = decay

    @interfaces.legacy_get_updates_support

After Change



    def __init__(self, learning_rate=0.001, rho=0.9, momentum=0., centered=False,
                 **kwargs):
        self.initial_decay = kwargs.pop("decay", 0.0)
        self._momentum = True if momentum > 0. else False
        with K.name_scope(self.__class__.__name__):
            learning_rate = kwargs.pop("lr", learning_rate)
            self.lr = K.variable(learning_rate, name="learning_rate")
            self.rho = K.variable(rho, name="rho")
            self.decay = K.variable(self.initial_decay, name="decay")
            self.iterations = K.variable(0, dtype="int64", name="iterations")
            if self._momentum:
                self.momentum = K.variable(momentum, name="momentum")
        self.epsilon = kwargs.pop("epsilon", K.epsilon())
        self.centered = centered
        super(RMSprop, self).__init__(**kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: keras-team/keras
Commit Name: 08f6bdeb5652550f36210f64aefda3d0d41e2d79
Time: 2019-05-28
Author: tanzheny@google.com
File Name: keras/optimizers.py
Class Name: RMSprop
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 544625545afe2e9c2b358e356c11bb8be53ceb51
Time: 2019-08-25
Author: tanzheny@google.com
File Name: keras/optimizers.py
Class Name: Adagrad
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 08f6bdeb5652550f36210f64aefda3d0d41e2d79
Time: 2019-05-28
Author: tanzheny@google.com
File Name: keras/optimizers.py
Class Name: Adagrad
Method Name: __init__