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

Before Change


        
        self._inputs = inputs
        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)

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: 4

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: scikit-learn-contrib/DESlib
Commit Name: 4abda80dd12518e6bfdc44d067566a3e6947e906
Time: 2018-03-28
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/a_priori.py
Class Name: APriori
Method Name: estimate_competence


Project Name: dmlc/dgl
Commit Name: cf8a3fb30547d6e980ecd8182f64a51df8e55c62
Time: 2021-02-10
Author: expye@outlook.com
File Name: python/dgl/backend/pytorch/tensor.py
Class Name:
Method Name: pack_padded_tensor