d4f070d597c4f061e07e2706838b1e89193cd356,paysage/optimizers.py,Momentum,update,#Momentum#Any#Any#Any#Any#,107

Before Change


            for key in model.penalty:
                self.grad[key] += model.penalty[key].grad(model.params[key])
        for key in self.grad:
            self.delta[key] = self.grad[key] + self.momentum * self.delta[key]
            model.params[key] -= lr * self.delta[key]
        model.enforce_constraints()

After Change


        self.memory.update(grad)
        self.delta = deepcopy(self.memory.mean_gradient)

        for l in self.delta["layers"]:
            be.multiply_dict_inplace(l, lr)

        for l in self.delta["weights"]:
            be.multiply_dict_inplace(l, lr)

        model.parameter_update(self.delta)


class RMSProp(Optimizer):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: drckf/paysage
Commit Name: d4f070d597c4f061e07e2706838b1e89193cd356
Time: 2017-03-17
Author: charleskennethfisher@gmail.com
File Name: paysage/optimizers.py
Class Name: Momentum
Method Name: update


Project Name: drckf/paysage
Commit Name: d4f070d597c4f061e07e2706838b1e89193cd356
Time: 2017-03-17
Author: charleskennethfisher@gmail.com
File Name: paysage/optimizers.py
Class Name: StochasticGradientDescent
Method Name: update


Project Name: drckf/paysage
Commit Name: d4f070d597c4f061e07e2706838b1e89193cd356
Time: 2017-03-17
Author: charleskennethfisher@gmail.com
File Name: paysage/optimizers.py
Class Name: Momentum
Method Name: update


Project Name: drckf/paysage
Commit Name: 2921cade4187f926f89b35a4f56a9cb54fa2e2f3
Time: 2017-03-17
Author: charleskennethfisher@gmail.com
File Name: paysage/optimizers.py
Class Name: RMSProp
Method Name: update