From 2489603ec450f70f2f0a11b1659dc9d060cb2ce9 Mon Sep 17 00:00:00 2001 From: erdogant Date: Thu, 20 Jul 2023 21:49:12 +0200 Subject: [PATCH] removed the recursive check. --- bnlearn/bnlearn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bnlearn/bnlearn.py b/bnlearn/bnlearn.py index 02d583b..2dc0b97 100644 --- a/bnlearn/bnlearn.py +++ b/bnlearn/bnlearn.py @@ -278,7 +278,7 @@ def check_model(DAG, verbose=3): for cpd in DAG.get_cpds(): if not np.all(cpd.values.astype(Decimal).sum(axis=0)==1): if verbose>=3: print('[bnlearn] >CPD [%s] does not add up to 1 but is: %s' %(cpd.variable, cpd.values.sum(axis=0))) - if verbose>=3: print('[bnlearn] >Check whether CPDs associated with the nodes are consistent: %s' %(DAG.check_model())) + # if verbose>=3: print('[bnlearn] >Check whether CPDs associated with the nodes are consistent: %s' %(DAG.check_model())) else: if verbose>=2: print('[bnlearn] >No model found containing CPDs.')