Skip to content

Commit 5a6af31

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f0841a4 commit 5a6af31

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

dodiscover/ci/categorical_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def power_divergence(
5757
Returns a tuple (chi, p_value, dof). `chi` is the
5858
chi-squared test statistic. The `p_value` for the test, i.e. the
5959
probability of observing the computed chi-square statistic (or an even
60-
higher value), given the null hypothesis that X \u27C2 Y | Zs is True.
60+
higher value), given the null hypothesis that X \u27c2 Y | Zs is True.
6161
If boolean = True, returns True if the p_value of the test is greater
6262
than `significance_level` else returns False.
6363
@@ -112,11 +112,11 @@ def power_divergence(
112112
# If one of the values is 0 in the 2x2 table.
113113
if isinstance(z_state, str):
114114
logging.info(
115-
f"Skipping the test {X} \u27C2 {Y} | {Z[0]}={z_state}. Not enough samples"
115+
f"Skipping the test {X} \u27c2 {Y} | {Z[0]}={z_state}. Not enough samples"
116116
)
117117
else:
118118
z_str = ", ".join([f"{var}={state}" for var, state in zip(Z, z_state)])
119-
logging.info(f"Skipping the test {X} \u27C2 {Y} | {z_str}. Not enough samples")
119+
logging.info(f"Skipping the test {X} \u27c2 {Y} | {z_str}. Not enough samples")
120120

121121
if np.isnan(c):
122122
raise RuntimeError(

dodiscover/context_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def variables(
198198
self._latent_variables = latents
199199

200200
if data is not None:
201-
(observed, latents) = self._interpolate_variables(data, observed, latents)
201+
observed, latents = self._interpolate_variables(data, observed, latents)
202202
self._observed_variables = observed
203203
self._latent_variables = latents
204204

examples/plot_pc_alg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from dowhy import gcm
3838
from dowhy.gcm.util.general import set_random_seed
3939

40-
4140
# %%
4241
# Simulate some data
4342
# ------------------

examples/plot_score_alg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
from dowhy import gcm
7070
from dowhy.gcm.util.general import set_random_seed
7171

72-
7372
# %%
7473
# Simulate some data
7574
# ------------------

examples/prior_know_score.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from dowhy import gcm
2121
from dowhy.gcm.util.general import set_random_seed
2222

23-
2423
# %%
2524
# Simulate some data
2625
# ------------------

0 commit comments

Comments
 (0)