Skip to content

Commit 0b26828

Browse files
committed
Fixed spacing issues.
Signed-off-by: Grace Sng <[email protected]>
1 parent 4d9ee64 commit 0b26828

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

pywhyllm/suggesters/validation_suggester.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def request_negative_controls(
6565
factors_list: list(),
6666
negative_controls_counter: list(),
6767
domain_expertise: str,
68-
analysis_context = CONTEXT
68+
analysis_context=CONTEXT
6969
):
7070
negative_controls_list: List[str] = list()
7171

@@ -82,8 +82,7 @@ def request_negative_controls(
8282
questions about cause and effect using your domain knowledge in the {domain_expertise}."""
8383

8484
with user():
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
8786
the {analysis_context}, should see zero treatment effect when changing the {treatment}? Which factor(s)
8887
from the list of factors, if any at all, relevant to the {analysis_context}, are negative controls on the
8988
causal mechanisms that affect the {outcome} when changing {treatment}? Using your domain knowledge,
@@ -176,14 +175,12 @@ def request_latent_confounders(
176175
try:
177176
lm = self.llm
178177
with system():
179-
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
181179
all the assumptions about the {domain_expertise}. Where a causal model is a conceptual model that describes
182180
the causal mechanisms of a system. You will do this by by answering questions about cause and effect and
183181
using your domain knowledge in the {domain_expertise}."""
184182
with user():
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
187184
between the {treatment} and the {outcome}. Use your knowledge as an expert in the {domain_expertise} to
188185
describe the confounders, if there are any at all, between the {treatment} and the {outcome}. Be concise
189186
and keep your thinking within two paragraphs. Then provide your step by step chain of thoughts within the

0 commit comments

Comments
 (0)