5a53f60e5143ab6f416437dadddd2f1df133a247,pgmpy/models/JunctionTree.py,JunctionTree,add_edge,#JunctionTree#,100
Before Change
... (("a", "b", "c"), ("a", "c"))])
set_u = set(u)
set_v = set(v)
if set_u.isdisjoint(set_v):
raise ValueError("No sepset found between these two edges.")
super().add_edge(u, v)
After Change
import networkx as nx
if u in self.nodes() and v in self.nodes() and nx.has_path(self, u, v):
raise ValueError("Addition of edge between {u} and {v} forms a cycle breaking the "
"properties of Junction Tree".format(u=str(u), v=str(v)))
super().add_edge(u, v, **kwargs)
def check_model(self):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
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: add_edge
Project Name: ilastik/ilastik
Commit Name: 735d2f5a71dcf16e140b81a1490eb0cbf07d37e2
Time: 2019-07-08
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/batchProcessing/batchProcessingGui.py
Class Name: BatchProcessingGui
Method Name: select_files
Project Name: mlpack/benchmarks
Commit Name: bfbc7582aa9e6a3e1fde6679663232f1f3f1d1fa
Time: 2019-04-24
Author: rukman.sai2@gmail.com
File Name: methods/shogun/lda.py
Class Name: SHOGUN_LDA
Method Name: __init__
Project Name: EpistasisLab/tpot
Commit Name: 92f0b4f4943b953b4b57d8f1d851e6b8e63441e7
Time: 2018-04-19
Author: weixuanf@pennmedicine.upenn.edu
File Name: tpot/builtins/dataset_selector.py
Class Name: DatasetSelector
Method Name: fit
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 4eb75141ee285b24cdfb0d5a5940da6ee5c59f75
Time: 2018-07-06
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: identify_product