Skip to content

Commit 61bc71c

Browse files
committed
Updated schematic again
1 parent b4287fb commit 61bc71c

File tree

5 files changed

+46
-49
lines changed

5 files changed

+46
-49
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
### A Causal Inference-Driven Software Testing Framework
33

44

5-
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
6-
![example workflow](https://github.com/CITCOM-project/CausalTestingFramework/actions/workflows/ci-tests.yaml/badge.svg)
7-
[![codecov](https://codecov.io/gh/CITCOM-project/CausalTestingFramework/branch/main/graph/badge.svg?token=04ijFVrb4a)](https://codecov.io/gh/CITCOM-project/CausalTestingFramework)
5+
[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
6+
![example workflow](https://github.com/CITCOM-project/CausalTestingFramework/actions/workflows/ci-tests.yaml/badge.svg)
7+
[![codecov](https://codecov.io/gh/CITCOM-project/CausalTestingFramework/branch/main/graph/badge.svg?token=04ijFVrb4a)](https://codecov.io/gh/CITCOM-project/CausalTestingFramework)
88
[![Documentation Status](https://readthedocs.org/projects/causal-testing-framework/badge/?version=latest)](https://causal-testing-framework.readthedocs.io/en/latest/?badge=latest)
99
![Dynamic TOML Badge](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2FCITCOM-project%2FCausalTestingFramework%2Fmain%2Fpyproject.toml&query=%24.project%5B'requires-python'%5D&label=python)
1010
![PyPI - Version](https://img.shields.io/pypi/v/causal-testing-framework)
@@ -19,7 +19,7 @@ design statistical procedures capable of making causal inferences. Each causal t
1919
an intervention made to the system-under test. That is, a prescribed change to the input configuration of the
2020
system-under-test that is expected to cause a change to some output(s).
2121

22-
![Causal Testing Workflow](images/workflow.png)
22+
![Causal Testing Workflow](images/schematic.png)
2323

2424
## Installation
2525

images/brain.tex

Lines changed: 0 additions & 21 deletions
This file was deleted.

images/schematic.png

72.3 KB
Loading

images/workflow.tex renamed to images/schematic.tex

Lines changed: 42 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
\newcommand*{\expe}{\mathds{E}}
88
\usepackage{amsmath}
99
\usepackage{booktabs}
10+
1011
\usepackage[default]{FiraSans}
12+
\usepackage[mathrm=sym]{unicode-math}
13+
\setmathfont{Fira Math}
1114

1215
\begin{document}
13-
1416
\tikzset{
1517
node/.style={circle, draw, minimum size=3ex, inner sep=0.2},
1618
edge/.style={->,> = latex'},
@@ -63,24 +65,6 @@
6365
\node[draw, rectangle] [fit=(title) (tuple) (left) (right)] {};
6466
\end{scope}
6567

66-
\begin{scope}[name prefix=data-, local bounding box=test-data, shift={($(test-case.south)+(0, -1)$)}]
67-
\node[draw=none, rectangle, anchor=north] (title) at (0, 0) {Test Data};
68-
\node[anchor=north] (table) at (title.south) {
69-
\begin{tabular}{rrrrrr}
70-
\toprule
71-
$X_1$ & $X_2$ & $I$ & $Y_1$ & $Y_2$ & $Y_3$ \\
72-
\midrule
73-
1.2 & ``UK'' & 0.3 & 7.8 & 4 & 100 \\
74-
3.2 & ``UK'' & 0.1 & 7.6 & 8 & 95 \\
75-
\multicolumn{6}{c}{$\vdots$} \\
76-
\bottomrule
77-
\end{tabular}
78-
};
79-
\coordinate (left) at (scenario-scenario.east |- {(0, 0)});
80-
\coordinate (right) at (scenario-scenario.west |- {(0, 0)});
81-
\node[draw, rectangle] [fit=(title) (table) (left) (right)] {};
82-
\end{scope}
83-
8468
\begin{scope}[name prefix=estimand-, local bounding box=estimand, anchor=south, shift={($(test-case.east |- test-tuple.south) + (1, 0)$)}]
8569
\node[anchor=south west] (eqn) at (0,0) {
8670
$\Delta Y=\expe{[I=0 | X_1]} - \expe{[I=1 | X_1]} $
@@ -99,9 +83,45 @@
9983
\node[draw, rectangle] [fit=(title) (table) (top) (bot)] {};
10084
\end{scope}
10185

102-
\begin{scope}[name prefix=oracle-, local bounding box=test-oracle, shift={($(estimate.east) + (1.75, -0.2)$)}]
86+
\begin{scope}[name prefix=data-, local bounding box=test-data, shift={($(estimate.north)+(0, 1)$)},]
87+
\node[anchor=south] (table) at (0,0) {
88+
\begin{tabular}{rrrrrr}
89+
\toprule
90+
$X_1$ & $X_2$ & $I$ & $Y_1$ & $Y_2$ & $Y_3$ \\
91+
\midrule
92+
1.2 & ``UK'' & 0.3 & 7.8 & 4 & 100 \\
93+
3.2 & ``UK'' & 0.1 & 7.6 & 8 & 95 \\
94+
\multicolumn{6}{c}{$\vdots$} \\
95+
\bottomrule
96+
\end{tabular}
97+
};
98+
\node[draw=none, rectangle, anchor=south] (title) at (table.north) {Test Data};
99+
\node[draw, rectangle] [fit=(title) (table)] {};
100+
\end{scope}
101+
102+
\begin{scope}[name prefix=oracle-, local bounding box=test-oracle, shift={($(estimate.east) + (1.54, -0.4)$)}]
103103
\begin{scope}[shift={(0,0)}, local bounding box=brain, scale=1.2]
104-
\input{brain}
104+
\begin{scope}[shift={(-7.6932,3.5256)}, local bounding box=brain]
105+
\path[draw,line width=0.025cm] (8.162, -2.8955) circle (0.066cm);
106+
\path[draw,line width=0.025cm] (8.0485, -3.2243) circle (0.066cm);
107+
\path[draw,line width=0.025cm] (8.0346, -3.5296) circle (0.066cm);
108+
\path[draw,line width=0.025cm] (8.2166, -3.757) circle (0.066cm);
109+
\path[draw,line width=0.025cm] (7.6556, -3.7827) circle (0.066cm);
110+
\path[draw,line width=0.025cm] (7.6315, -3.5091) circle (0.066cm);
111+
\path[draw,line width=0.025cm] (7.4451, -3.2224) circle (0.066cm);
112+
\path[draw,line width=0.025cm] (7.6247, -2.9461) circle (0.066cm);
113+
114+
\path[draw,line width=0.025cm,miter limit=4.0] (7.6932, -2.6331) -- (7.3637, -2.8234) -- (7.3637, -3.0567) -- (7.1749, -3.1656) -- (7.1749, -3.5256) -- (7.3341, -3.6175) -- (7.3341, -3.8517) -- (7.6883, -4.0562) -- (7.868, -3.9669) -- (8.0478, -4.0562) -- (8.4019, -3.8517) -- (8.4019, -3.6175) -- (8.5611, -3.5256) -- (8.5611, -3.1656) -- (8.3724, -3.0567) -- (8.3724, -2.8234) -- (8.0429, -2.6331) -- (7.868, -2.7341) -- cycle;
115+
\path[draw,line width=0.025cm,miter limit=4.0] (7.868, -3.9669) -- (7.868, -2.7341);
116+
\path[draw,line width=0.025cm] (7.5588, -2.9461) -- (7.3637, -2.9461);
117+
\path[draw,line width=0.025cm] (7.4451, -3.1565) -- (7.4451, -2.9461);
118+
\path[draw,line width=0.025cm] (7.6316, -3.4431) -- (7.6316, -3.2116) -- (7.868, -3.2116);
119+
\path[draw,line width=0.025cm] (7.5897, -3.7827) -- (7.4177, -3.7827) -- (7.4177, -3.523) -- (7.1749, -3.523);
120+
\path[draw,line width=0.025cm] (8.162, -2.9614) -- (8.162, -3.0534) -- (7.868, -3.0534);
121+
\path[draw,line width=0.025cm] (8.0485, -3.1584) -- (8.0485, -3.0534);
122+
\path[draw,line width=0.025cm] (8.1005, -3.5296) -- (8.313, -3.5296) -- (8.313, -3.3442) -- (8.5611, -3.3442);
123+
\path[draw,line width=0.025cm] (8.1507, -3.757) -- (8.0477, -3.757) -- (8.0477, -4.0561);
124+
\end{scope}
105125
\end{scope}
106126
\node[draw=none, rectangle, anchor=south] (title) at (brain.north) {Test Oracle};
107127

@@ -120,12 +140,10 @@
120140
\draw[edge, dashed] ($(specification.east) + (0.1, 0)$) -- (estimand.north |- specification.east) -- (estimand.north);
121141
\draw[edge, dashed] (test-case) -- (estimand);
122142

123-
\draw[edge, dashed] ($(test-data.east) + (0.1, 0)$) -- (estimate.south |- test-data.east) -- (estimate.south);
143+
\draw[edge, dashed] (test-data.south) -- (estimate.north);
124144
\draw[edge, dashed] (estimand) -- (estimate);
125145

126146
\draw[edge, dashed] (estimate) -- (test-oracle.west |- estimate);
127147
\draw[edge, dashed] (test-oracle.east |- test-outcome) -- (test-outcome);
128148
\end{tikzpicture}
129-
130-
131149
\end{document}

images/workflow.png

-81.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)