Skip to content

Commit 14afe09

Browse files
committed
Minor fix in docstring
1 parent d48f0c3 commit 14afe09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

causalpy/pymc_models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,8 @@ class InterventionTimeEstimator(PyMCModel):
541541
... t,
542542
... y,
543543
... coords,
544-
... effect=["impulse"])
544+
... effect=["impulse"]
545+
... n=5000)
545546
Inference data...
546547
"""
547548

@@ -600,11 +601,11 @@ def build_model(self, t, y, coords, effect, span, grain_season):
600601
# --- Likelihood ---
601602
pm.Normal("y_hat", mu=mu, sigma=2, observed=y)
602603

603-
def fit(self, t, y, coords, effect=[], span=None, grain_season=1):
604+
def fit(self, t, y, coords, effect=[], span=None, grain_season=1, n=1000):
604605
"""
605606
Draw samples from posterior distribution
606607
"""
607608
self.build_model(t, y, coords, effect, span, grain_season)
608609
with self:
609-
self.idata = pm.sample(**self.sample_kwargs)
610+
self.idata = pm.sample(n, **self.sample_kwargs)
610611
return self.idata

0 commit comments

Comments
 (0)