Skip to content

Commit

Permalink
removed the recursive check.
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Jul 20, 2023
1 parent e51094f commit 2489603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bnlearn/bnlearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')

Expand Down

0 comments on commit 2489603

Please sign in to comment.