File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ def execute(
106
106
)
107
107
test_result .relationship = (
108
108
f"{ surrogate_model .base_test_case .treatment_variable .name } -> "
109
- f"{ surrogate_model .base_test_case .outcome_variable .name } expected { surrogate_model .expected_relationship } "
109
+ f"{ surrogate_model .base_test_case .outcome_variable .name } expected "
110
+ f"{ surrogate_model .expected_relationship } "
110
111
)
111
112
return test_result , i + 1 , df
112
113
Original file line number Diff line number Diff line change @@ -129,8 +129,9 @@ def ci_valid(self) -> bool:
129
129
130
130
def summary (self ):
131
131
"""Summarise the causal test result as an intuitive sentence."""
132
+ treatment_variable = self .estimator .base_test_case .treatment_variable
132
133
print (
133
- f"The causal effect of changing { self . estimator . base_test_case . treatment_variable .name } = { self .estimator .control_value } to "
134
- f"{ self . estimator . base_test_case . treatment_variable .name } ' = { self .estimator .treatment_value } is { self .test_value .value } "
134
+ f"The causal effect of changing { treatment_variable .name } = { self .estimator .control_value } to "
135
+ f"{ treatment_variable .name } ' = { self .estimator .treatment_value } is { self .test_value .value } "
135
136
f"(95% confidence intervals: { self .confidence_intervals } )."
136
137
)
You can’t perform that action at this time.
0 commit comments