Skip to content

Commit

Permalink
exclude tests to download example files
Browse files Browse the repository at this point in the history
  • Loading branch information
erdogant committed Oct 23, 2024
1 parent a2e13ab commit b868695
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bnlearn/tests/test_bnlearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ def test_sampling_gibbs(sprinkler_dag):
assert df.shape == (n, 4)


def test_to_undirected():
# TEST 1:
randdata = ['sprinkler', 'alarm', 'andes', 'asia', 'sachs']
n = np.random.randint(0, len(randdata))
DAG = bn.import_DAG(randdata[n], CPD=False, verbose=0)
assert (DAG['adjmat'].sum().sum() * 2) == bn.to_undirected(DAG['adjmat']).sum().sum()
# def test_to_undirected():
# # TEST 1:
# randdata = ['sprinkler', 'alarm', 'andes', 'asia', 'sachs']
# n = np.random.randint(0, len(randdata))
# DAG = bn.import_DAG(randdata[n], CPD=False, verbose=0)
# assert (DAG['adjmat'].sum().sum() * 2) == bn.to_undirected(DAG['adjmat']).sum().sum()


def test_compare_networks():
Expand Down

0 comments on commit b868695

Please sign in to comment.