46324d0e05c679b2cf50b81289fe2886456f6e51,dit/pid/ibroja.py,BROJAOptimizer,__init__,#BROJAOptimizer#,22

Before Change


        self._output = output
        self._var_map = {var: i for i, var in enumerate(inputs + (output,))}
        dist = dist.coalesce(inputs + (output,))
        constraints = [i + dist.rvs[-1] for i in dist.rvs[:-1]]
        super(BROJAOptimizer, self).__init__(dist, constraints)


    def objective(self, x):

After Change


        rv_mode : bool
            Unused, provided for compatibility with parent class.
        
        dist = dist.coalesce((input,) + (sum(others, ()),) + (output,))
        constraints = [[0, 2], [1, 2]]
        super(BROJAOptimizer, self).__init__(dist, constraints)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: dit/dit
Commit Name: 46324d0e05c679b2cf50b81289fe2886456f6e51
Time: 2017-09-19
Author: ryangregoryjames@gmail.com
File Name: dit/pid/ibroja.py
Class Name: BROJAOptimizer
Method Name: __init__


Project Name: SheffieldML/GPy
Commit Name: a11cf422c2ba893e2168837d331eccdbb3c7a01f
Time: 2015-04-28
Author: james.hensman@gmail.com
File Name: GPy/kern/_src/stationary.py
Class Name: Stationary
Method Name: update_gradients_full


Project Name: astroML/astroML
Commit Name: 4e70cb5fc9a9494e866ccd7d2e1a9046091b6337
Time: 2018-11-16
Author: bsipocz@gmail.com
File Name: astroML/density_estimation/gauss_mixture.py
Class Name: GaussianMixture1D
Method Name: __init__