Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions causationentropy/tests/test_discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ def test_discover_network_basic_numpy(self):

assert isinstance(G, nx.MultiDiGraph)
assert len(G.nodes()) == 2

# Assert ground-truth causal recovery (Issue #15)
edges_with_lag = {
(u, v, attrs.get("lag")) for u, v, attrs in G.edges(data=True)
}
assert ("X0", "X1", 1) in edges_with_lag
assert edges_with_lag == {("X0", "X1", 1)}

assert "X0" in G.nodes()
assert "X1" in G.nodes()

Expand Down