Skip to content

Commit 935b859

Browse files
committed
Updated directory and imports and revised parameter lists.
Signed-off-by: Grace Sng <[email protected]>
1 parent 75880c6 commit 935b859

20 files changed

+27
-28
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ factors_list = ["a", "b", "c"]
4343
treatment = "treatment"
4444
outcome = "outcome"
4545

46-
#Suggest a list of domain expertises
46+
# Suggest a list of domain expertises
4747
domain_expertises = modeler.suggest_domain_expertises(factors_list)
4848

4949
# Suggest a set of potential confounders

pywhyllm/suggesters/identification_suggester.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def suggest_backdoor(
118118
outcome: str,
119119
factors_list: list(),
120120
expertise_list: list(),
121-
analysis_context=CONTEXT,
121+
analysis_context: str = CONTEXT,
122122
stakeholders: list() = None
123123
):
124124
backdoor_set = self.model_suggester.suggest_confounders(
@@ -138,7 +138,7 @@ def suggest_frontdoor(
138138
outcome: str,
139139
factors_list: list(),
140140
expertise_list: list(),
141-
analysis_context=CONTEXT,
141+
analysis_context: str = CONTEXT,
142142
stakeholders: list() = None
143143
):
144144
pass
@@ -149,7 +149,7 @@ def suggest_mediators(
149149
outcome: str,
150150
factors_list: list(),
151151
expertise_list: list(),
152-
analysis_context=CONTEXT,
152+
analysis_context: str = CONTEXT,
153153
stakeholders: list() = None
154154
):
155155
expert_list: List[str] = list()
@@ -189,7 +189,7 @@ def request_mediators(
189189
domain_expertise,
190190
factors_list,
191191
mediators_edges,
192-
analysis_context=CONTEXT
192+
analysis_context: str = CONTEXT
193193
):
194194
mediators: List[str] = list()
195195

@@ -262,7 +262,7 @@ def suggest_ivs(
262262
outcome: str,
263263
factors_list: list(),
264264
expertise_list: list(),
265-
analysis_context=CONTEXT,
265+
analysis_context: str = CONTEXT,
266266
stakeholders: list() = None
267267
):
268268
expert_list: List[str] = list()

pywhyllm/suggesters/model_suggester.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def suggest_domain_expertises(
1919
self,
2020
factors_list,
2121
n_experts: int = 1,
22-
analysis_context=CONTEXT
22+
analysis_context: str = CONTEXT
2323
):
2424

2525
expertise_list: List[str] = list()
@@ -62,7 +62,7 @@ def suggest_domain_experts(
6262
self,
6363
factors_list,
6464
n_experts: int = 5,
65-
analysis_context=CONTEXT
65+
analysis_context: str = CONTEXT
6666
):
6767

6868
experts_list: Set[str] = set()
@@ -104,7 +104,7 @@ def suggest_stakeholders(
104104
self,
105105
factors_list,
106106
n_stakeholders: int = 5, # must be > 1
107-
analysis_context=CONTEXT
107+
analysis_context: str = CONTEXT
108108
):
109109

110110
stakeholder_list: List[str] = list()
@@ -194,7 +194,7 @@ def request_confounders(
194194
domain_expertise,
195195
factors_list,
196196
confounders_edges,
197-
analysis_context=CONTEXT
197+
analysis_context: str = CONTEXT
198198
):
199199
confounders: List[str] = list()
200200

@@ -265,7 +265,7 @@ def suggest_parents(
265265
domain_expertise,
266266
factor,
267267
factors_list,
268-
analysis_context=CONTEXT
268+
analysis_context: str = CONTEXT
269269
):
270270
parent_candidates: List[str] = []
271271

@@ -330,7 +330,7 @@ def suggest_children(
330330
domain_expertise,
331331
factor,
332332
factors_list,
333-
analysis_context=CONTEXT
333+
analysis_context: str = CONTEXT
334334
):
335335

336336
children_candidates: List[str] = []

pywhyllm/suggesters/validation_suggester.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def suggest_negative_controls(
2424
outcome: str,
2525
factors_list: list(),
2626
expertise_list: list(),
27-
analysis_context=CONTEXT,
27+
analysis_context: str = CONTEXT,
2828
stakeholders: list() = None
2929
):
3030
expert_list: List[str] = list()
@@ -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: str = CONTEXT
6969
):
7070
negative_controls_list: List[str] = list()
7171

@@ -132,7 +132,7 @@ def suggest_latent_confounders(
132132
treatment: str,
133133
outcome: str,
134134
expertise_list: list(),
135-
analysis_context=CONTEXT,
135+
analysis_context: str = CONTEXT,
136136
stakeholders: list() = None
137137
):
138138
expert_list: List[str] = list()
@@ -166,7 +166,7 @@ def request_latent_confounders(
166166
outcome: str,
167167
latent_confounders_counter: list(),
168168
domain_expertise: str,
169-
analysis_context=CONTEXT
169+
analysis_context: str = CONTEXT
170170
):
171171
latent_confounders_list: List[str] = list()
172172

@@ -224,7 +224,7 @@ def request_parent_critique(
224224
factor,
225225
factors_list,
226226
domain_expertise,
227-
analysis_context=CONTEXT
227+
analysis_context: str = CONTEXT
228228
):
229229
edited_factors_list: List[str] = []
230230

@@ -275,7 +275,7 @@ def request_children_critique(
275275
factor,
276276
factors_list,
277277
domain_expertise,
278-
analysis_context=CONTEXT
278+
analysis_context: str = CONTEXT
279279
):
280280
edited_factors_list: List[str] = []
281281

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)