Skip to content

Commit

Permalink
Merge pull request #78 from MarkDana/d_separation_as_cit
Browse files Browse the repository at this point in the history
fixed a typo in test_pc_load_bnlearn_graphs_with_d_separation
  • Loading branch information
kunwuz authored Sep 25, 2022
2 parents 599f3d3 + e1d40bc commit 2a6c904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestPC.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def test_pc_load_bnlearn_graphs_with_d_separation(self):
data = np.zeros((100, len(truth_dag.nodes))) # just a placeholder
cg = pc(data, 0.05, d_separation, True, 0, -1, true_dag=true_dag_netx)
shd = SHD(truth_cpdag, cg.G)
self.assertEqual(0, shd, "PC with d-separation as CIT returns an inaccurate CPDAG.")
self.assertEqual(0, shd.get_shd(), "PC with d-separation as CIT returns an inaccurate CPDAG.")
print(f'{bname} ({num_nodes_in_truth} nodes/{num_edges_in_truth} edges): used {cg.PC_elapsed:.5f}s, SHD: {shd.get_shd()}')

print('test_pc_load_bnlearn_graphs_with_d_separation passed!\n')
Expand Down

0 comments on commit 2a6c904

Please sign in to comment.