ddd5f47640126dae27d3a99d5663e8efbd27da89,keras/layers/core.py,Merge,__init__,#Merge#Any#Any#,116

Before Change


            for i in range(len(m.params)):
                if not m.params[i] in self.params:
                    self.params.append(m.params[i])
                    self.constraints.append(m.constraints[i])

    def get_params(self):
        return self.params, self.regularizers, self.constraints

After Change


        self.regularizers = []
        self.constraints = []
        for m in self.models:
            params, regs, consts = m.get_params()
            self.regularizers += regs
            // params and constraints have the same size
            for p, c in zip(params, consts):
                if not p in self.params:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: ddd5f47640126dae27d3a99d5663e8efbd27da89
Time: 2015-07-05
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Merge
Method Name: __init__


Project Name: Theano/Theano
Commit Name: b2ae1db6499f1121f4edef618d6acb141b653d28
Time: 2016-11-08
Author: stevenbocco@gmail.com
File Name: theano/tensor/opt_uncanonicalize.py
Class Name:
Method Name: local_max_and_argmax


Project Name: hachmannlab/chemml
Commit Name: 81b21595259e2d153ba36ec4027bdea97a0bb5f5
Time: 2018-03-03
Author: mojtabah@buffalo.edu
File Name: cheml/wrappers/sklearn_skl/sklearn_wrapper.py
Class Name: GridSearchCV
Method Name: fit