Skip to content

Commit 0923810

Browse files
committed
Fixing sigma's dims in Priors
1 parent a6573ef commit 0923810

File tree

2 files changed

+4970
-33
lines changed

2 files changed

+4970
-33
lines changed

causalpy/pymc_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ class LinearChangePointDetection(PyMCModel):
973973
"impulse_decay_rate": Prior("HalfNormal", sigma=5),
974974
"y_hat": Prior(
975975
"Normal",
976-
sigma=Prior("HalfNormal", sigma=5),
976+
sigma=Prior("HalfNormal", sigma=5, dims=["treated_units"]),
977977
dims=["obs_ind", "treated_units"],
978978
),
979979
}

docs/source/notebooks/cp_covid.ipynb

Lines changed: 4969 additions & 32 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)