Skip to content

Commit

Permalink
Fixes minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurankan committed Mar 14, 2023
1 parent c0fd34a commit 957232a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgmpy/models/DynamicBayesianNetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def fit(self, data, estimator="MLE", state_names={}, n_jobs=-1):

# Fit or fit_update with df_slice depending on the time slice
if t_slice == 0:
const_bn.fit(df_slice, state_names={}, n_jobs=n_jobs)
const_bn.fit(df_slice, state_names=state_names, n_jobs=n_jobs)
else:
const_bn.fit_update(
df_slice, n_prev_samples=t_slice * n_samples, n_jobs=n_jobs
Expand Down

0 comments on commit 957232a

Please sign in to comment.