You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/frontends/json_front_end.rst
+20-9Lines changed: 20 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,28 @@ Use case specific information is also declared here such as the paths to the rel
21
21
22
22
causal_tests.json
23
23
-----------------
24
-
`examples/poisson/causal_tests.json <https://github.com/CITCOM-project/CausalTestingFramework/blob/main/examples/poisson/causal_tests.json>`_ contains python code written by the user to implement scenario specific features
25
-
is the JSON file that allows for the easy specification of multiple causal tests.
24
+
`examples/poisson/causal_tests.json <https://github.c#om/CITCOM-project/CausalTestingFramework/blob/main/examples/poisson/causal_tests.json>`_ contains python code written by the user to implement scenario specific features
25
+
is the JSON file that allows for the easy specification of multiple causal tests. Tests can be specified two ways; firstly by specifying a mutation lke in the example tests with the following structure:
26
26
Each test requires:
27
-
1. Test name
28
-
2. Mutations
29
-
3. Estimator
30
-
4. Estimate_type
31
-
5. Effect modifiers
32
-
6. Expected effects
33
-
7. Skip: boolean that if set true the test won't be executed and will be skipped
34
27
28
+
#. name
29
+
#. mutations
30
+
#. estimator
31
+
#. estimate_type
32
+
#. effect_modifiers
33
+
#. expected_effects
34
+
#. skip: boolean that if set true the test won't be executed and will be skipped
35
+
36
+
The second method of specifying a test is to specify the test in a concrete form with the following structure:
Copy file name to clipboardExpand all lines: examples/poisson/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,6 @@ To run this case study:
6
6
1. Ensure all project dependencies are installed by running `pip install .` in the top level directory
7
7
(instructions are provided in the project README).
8
8
2. Change directory to `causal_testing/examples/poisson`.
9
-
3. Run the command `python test_run_causal_tests.py --data_path data.csv --dag_path dag.dot --json_path causal_tests.json`
9
+
3. Run the command `python example_run_causal_tests.py --data_path data.csv --dag_path dag.dot --json_path causal_tests.json`
10
10
11
11
This should print a series of causal test results and produce two CSV files. `intensity_num_shapes_results_random_1000.csv` corresponds to table 1, and `width_num_shapes_results_random_1000.csv` relates to our findings regarding the relationship of width and `P_u`.
0 commit comments