Skip to content

Commit

Permalink
fix in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Nov 10, 2023
1 parent a1b3755 commit 924796b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bnlearn/tests/test_bnlearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def sprinkler_dag():

def test_sampling_bayes(sprinkler_dag):
n = np.random.randint(10, 1000)
df = bn.sampling(sprinkler_dag, n=n, methodtype='bayes')
model = bn.import_DAG('sprinkler')
df = bn.sampling(model, n=n, methodtype='bayes')
assert df.shape == (n, 4)


Expand Down

0 comments on commit 924796b

Please sign in to comment.