5a53f60e5143ab6f416437dadddd2f1df133a247,pgmpy/models/JunctionTree.py,JunctionTree,check_model,#JunctionTree#,238
Before Change
check: boolean
True if all the checks are passed
for clique in self.nodes():
if self.get_factors(clique):
pass
else:
raise ValueError("Factors for all the cliques or clusters not"
"defined.")
if len(self.factors) != len(self.nodes()):
raise ValueError("One to one mapping of factor to clique or cluster"
"is not there.")
After Change
if not nx.is_connected(self):
raise ValueError("The Junction Tree defined is not fully connected.")
return super().check_model()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: pgmpy/pgmpy
Commit Name: 5a53f60e5143ab6f416437dadddd2f1df133a247
Time: 2015-04-07
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/JunctionTree.py
Class Name: JunctionTree
Method Name: check_model
Project Name: pgmpy/pgmpy
Commit Name: 53bc1480e10f6594574850a05e20b3616d904dfe
Time: 2014-12-21
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/inference/base.py
Class Name: Inference
Method Name: __init__
Project Name: pgmpy/pgmpy
Commit Name: c7fccd2bfe6009797a984eeeef930790d35e397a
Time: 2015-01-04
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/FactorGraph.py
Class Name: FactorGraph
Method Name: get_variable_nodes
Project Name: pgmpy/pgmpy
Commit Name: ba2df6895f099dbec89c3627b6c63b69da2e5301
Time: 2015-01-04
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/JunctionTree.py
Class Name: JunctionTree
Method Name: get_partition_function