Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
Signed-off-by: Nicholas Parente <[email protected]>
  • Loading branch information
nparent1 committed Jan 28, 2025
1 parent 310434d commit 710b045
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion dowhy/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,9 @@ def dataset_from_random_graph(
else:
variable_type_dict[idx] = BINARY

return linear_dataset_from_graph(DAG, treatments, outcome, variable_type_dict=variable_type_dict, num_samples=num_samples)
return linear_dataset_from_graph(
DAG, treatments, outcome, variable_type_dict=variable_type_dict, num_samples=num_samples
)


def partially_linear_dataset(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestPropensityScoreMatchingEstimator(object):
"num_treatments",
"treatment_is_binary",
"outcome_is_binary",
"identifier_method"
"identifier_method",
],
[
(
Expand All @@ -37,7 +37,7 @@ class TestPropensityScoreMatchingEstimator(object):
[
False,
],
"backdoor"
"backdoor",
),
(
0.3,
Expand All @@ -56,7 +56,7 @@ class TestPropensityScoreMatchingEstimator(object):
[
False,
],
"general_adjustment"
"general_adjustment",
),
],
)
Expand All @@ -70,7 +70,7 @@ def test_average_treatment_effect(
num_treatments,
treatment_is_binary,
outcome_is_binary,
identifier_method
identifier_method,
):
estimator_tester = SimpleEstimator(error_tolerance, Estimator, identifier_method=identifier_method)
estimator_tester.average_treatment_effect_testsuite(
Expand Down

0 comments on commit 710b045

Please sign in to comment.