Skip to content

Commit eca49e1

Browse files
committed
Add additional Shpitser 2008 examples
1 parent 4fe4524 commit eca49e1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/y0/examples.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ class Example:
584584
),
585585
)
586586

587-
588587
cyclic_directed_example = Example(
589588
name="Cyclic directed graph",
590589
reference="out of the mind of JZ and ZW",
@@ -1028,6 +1027,25 @@ class Example:
10281027
data=pd.read_csv(ASIA_PATH).replace({"yes": 1, "no": -1}),
10291028
)
10301029

1030+
figure_2a_example = Example(
1031+
name="Shpitser et al. (2008), Figure 2A",
1032+
reference="Shpitser, I., & Pearl, J. (2008). Complete Identification Methods for the Causal Hierarchy. "
1033+
"Journal of Machine Learning Research.",
1034+
graph=NxMixedGraph.from_edges(
1035+
directed=[(X, Y)],
1036+
),
1037+
)
1038+
1039+
figure_2b_example = Example(
1040+
name="Shpitser et al. (2008), Figure 2B",
1041+
reference="Shpitser, I., & Pearl, J. (2008). Complete Identification Methods for the Causal Hierarchy. "
1042+
"Journal of Machine Learning Research.",
1043+
graph=NxMixedGraph.from_edges(
1044+
directed=[(X, Y), (X, Z), (Z, Y)],
1045+
undirected=[(Y, Z)],
1046+
),
1047+
)
1048+
10311049
complete_hierarchy_figure_2c_example = Example(
10321050
name="Shpitser et al (2008) figure 2d",
10331051
reference="Shpitser, I., & Pearl, J. (2008). Complete Identification Methods for the Causal Hierarchy. "

0 commit comments

Comments
 (0)