Skip to content

Commit

Permalink
fix another dbn config
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Oct 23, 2024
1 parent e5be8b2 commit d9432c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bnlearn/parameter_learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def fit(model, df, methodtype='bayes', scoretype='bdeu', smooth=None, n_jobs=-1,
independence_test = model.get('independence_test', None)

# Automatically set methodtype to DBN
if str(model['config'].get('method')).lower()=='dbn':
if model.get('config', {}).get('method') == 'DBN':
config['method'] = 'DBN'
if verbose>=3: print('[bnlearn] >Methodtype is set to DynamicBayesianNetwork (DBN)')

Expand Down

0 comments on commit d9432c4

Please sign in to comment.