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: pywhyllm/suggesters/validation_suggester.py
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ def request_negative_controls(
65
65
factors_list: list(),
66
66
negative_controls_counter: list(),
67
67
domain_expertise: str,
68
-
analysis_context=CONTEXT
68
+
analysis_context=CONTEXT
69
69
):
70
70
negative_controls_list: List[str] =list()
71
71
@@ -82,8 +82,7 @@ def request_negative_controls(
82
82
questions about cause and effect using your domain knowledge in the {domain_expertise}."""
83
83
84
84
withuser():
85
-
lm+=f"""factor_names: {factors_list} From your
86
-
perspective as an expert in the {domain_expertise}, what factor(s) from the list of factors, relevant to
85
+
lm+=f"""factor_names: {factors_list} From your perspective as an expert in the {domain_expertise}, what factor(s) from the list of factors, relevant to
87
86
the {analysis_context}, should see zero treatment effect when changing the {treatment}? Which factor(s)
88
87
from the list of factors, if any at all, relevant to the {analysis_context}, are negative controls on the
89
88
causal mechanisms that affect the {outcome} when changing {treatment}? Using your domain knowledge,
lm+=f"""You are an expert in the {domain_expertise} and are
180
-
studying the {analysis_context}. You are using your knowledge to help build a causal model that contains
178
+
lm+=f"""You are an expert in the {domain_expertise} and are studying the {analysis_context}. You are using your knowledge to help build a causal model that contains
181
179
all the assumptions about the {domain_expertise}. Where a causal model is a conceptual model that describes
182
180
the causal mechanisms of a system. You will do this by by answering questions about cause and effect and
183
181
using your domain knowledge in the {domain_expertise}."""
184
182
withuser():
185
-
lm+=f"""(1) From your perspective as
186
-
an expert in the {domain_expertise}, think step by step as you consider the factors that may interact
183
+
lm+=f"""(1) From your perspective as an expert in the {domain_expertise}, think step by step as you consider the factors that may interact
187
184
between the {treatment} and the {outcome}. Use your knowledge as an expert in the {domain_expertise} to
188
185
describe the confounders, if there are any at all, between the {treatment} and the {outcome}. Be concise
189
186
and keep your thinking within two paragraphs. Then provide your step by step chain of thoughts within the
0 commit comments