5a53f60e5143ab6f416437dadddd2f1df133a247,pgmpy/models/JunctionTree.py,JunctionTree,check_model,#JunctionTree#,238
Before Change
for factor in self.factors:
for variable, cardinality in zip(factor.scope(), factor.cardinality):
if ((self.cardinalities[variable]) and
(self.cardinalities[variable] != cardinality)):
raise CardinalityError(
"Cardinality of variable %s not matching among factors" % variable)
else:
self.cardinalities[variable] = cardinality
return True
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: 3
Non-data size: 4
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: scikit-learn-contrib/imbalanced-learn
Commit Name: e2fee9af59ecedfacb7429ba7eed1485cb5edca0
Time: 2019-06-11
Author: chkoar@users.noreply.github.com
File Name: imblearn/ensemble/_weight_boosting.py
Class Name: RUSBoostClassifier
Method Name: _validate_estimator
Project Name: havakv/pycox
Commit Name: b97635a12f49f8e1eaebcee30245ccb4e13a95c9
Time: 2018-05-05
Author: havard@DN0a22c81b.SUNet
File Name: pycox/cox.py
Class Name: CoxPH
Method Name: predict_expg