2921cade4187f926f89b35a4f56a9cb54fa2e2f3,paysage/optimizers.py,RMSProp,update,#RMSProp#Any#Any#Any#Any#,207

Before Change


        self.grad = gradient(model, v_data, v_model)
        if model.penalty:
            for key in model.penalty:
                self.grad[key] += model.penalty[key].grad(model.params[key])
        for key in self.grad:
            be.square_mix_inplace(self.mean_square_weight, self.mean_square_grad[key], self.grad[key])
            model.params[key] -= lr * be.sqrt_div(self.grad[key], self.epsilon + self.mean_square_grad[key])

After Change



            be.multiply_dict_inplace(l, lr)

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

        model.parameter_update(self.delta)

        for key in self.grad:
            be.square_mix_inplace(self.mean_square_weight, self.mean_square_grad[key], self.grad[key])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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


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: hyperopt/hyperopt
Commit Name: e8380a03134a586a554643abdef0944c3651b771
Time: 2011-10-22
Author: dyamins@gmail.com
File Name: hyperopt/theano_gp.py
Class Name: GP_BanditAlgo
Method Name: __init__