daa7947850ea7df6763ec076548ae4b372ee3fb9,pgmpy/inference/ExactInference.py,VariableElimination,induced_graph,#VariableElimination#,210

Before Change


            factors = [factor for factor in working_factors[var]
                       if not set(factor.variables).intersection(eliminated_variables)]
            phi = factor_product(*factors)
            phi.reduce("{variable}_0".format(variable=var))
            cliques.add(tuple(phi.scope()))
            del working_factors[var]
            for variable in phi.variables:

After Change


        if len(elimination_order) < len(self.variables):
            raise ValueError("Elimination order incomplete")
        // If the elimination_order list is incomplete, raise an error
        if set(elimination_order) != set(self.variables):
            raise ValueError("Set of variables in elimination "
            	"order different from variables in model")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pgmpy/pgmpy
Commit Name: daa7947850ea7df6763ec076548ae4b372ee3fb9
Time: 2015-03-25
Author: pratyaksh@me.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: induced_graph


Project Name: coala/coala-bears
Commit Name: 123f415de1d2fdf3b0c4b5c6cbdeb5e46b284bfb
Time: 2016-07-02
Author: ngoullasob@gmail.com
File Name: bears/r/FormatRBear.py
Class Name: FormatRBear
Method Name: create_arguments


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: 74a11a40cb30e383ccba5162608621e08eaf033a
Time: 2019-04-11
Author: ricsinaruto@hotmail.com
File Name: t2t_csaky/scripts/filtering_visualization.py
Class Name:
Method Name: print_clusters