Skip to content

Commit 8328ebe

Browse files
committed
make test less flaky
Signed-off-by: Nathaniel <NathanielF@users.noreply.github.com>
1 parent e3181f7 commit 8328ebe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

causalpy/tests/test_pymc_experiments.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_regression_kink_gradient_change():
6363

6464
def test_inverse_prop():
6565
df = cp.load_data("nhefs")
66-
sample_kwargs = {"tune": 100, "draws": 100, "chains": 2, "cores": 2}
66+
sample_kwargs = {"tune": 100, "draws": 500, "chains": 2, "cores": 2}
6767
result = cp.pymc_experiments.InversePropensityWeighting(
6868
df,
6969
formula="trt ~ 1 + age + race",
@@ -93,7 +93,7 @@ def test_inverse_prop():
9393
assert isinstance(ate_list, list)
9494
ate_list = result.get_ate(0, result.idata, method="overlap")
9595
assert isinstance(ate_list, list)
96-
fig = result.plot_ATE(prop_draws=10, ate_draws=10)
96+
fig = result.plot_ATE(prop_draws=1, ate_draws=10)
9797
assert isinstance(fig, mpl.figure.Figure)
9898
fig = result.plot_balance_ecdf("age")
9999
assert isinstance(fig, mpl.figure.Figure)

0 commit comments

Comments
 (0)