daa7947850ea7df6763ec076548ae4b372ee3fb9,pgmpy/inference/ExactInference.py,VariableElimination,induced_graph,#VariableElimination#Any#,210
Before Change
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:
working_factors[variable].add(phi)
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")
eliminated_variables = set()
working_factors = {node: [factor.scope() for factor in self.factors[node]]
for node in self.factors}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: google-research/google-research
Commit Name: fd81ee8c9acd2ba8ad0962ab454b43618f007424
Time: 2020-11-05
Author: zizhaoz@google.com
File Name: ieg/models/model.py
Class Name: IEG
Method Name: set_input
Project Name: google-research/google-research
Commit Name: fd81ee8c9acd2ba8ad0962ab454b43618f007424
Time: 2020-11-05
Author: zizhaoz@google.com
File Name: ieg/models/basemodel.py
Class Name: BaseModel
Method Name: set_input