Skip to content

Commit 31ee9b9

Browse files
committed
Making its work better
1 parent aab6310 commit 31ee9b9

File tree

2 files changed

+1174
-2
lines changed

2 files changed

+1174
-2
lines changed

causalpy/pymc_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,9 +1298,9 @@ def _prepare_idata(self):
12981298
new_idata = self.idata.copy()
12991299
# Get smoothed posterior and sum over state dimension
13001300
smoothed = self.conditional_idata.isel(observed_state=0).rename(
1301-
{"smoothed_posterior": "y_hat"}
1301+
{"smoothed_posterior_observed": "y_hat"}
13021302
)
1303-
y_hat_summed = smoothed.y_hat.sum(dim="state")
1303+
y_hat_summed = smoothed.y_hat.copy()
13041304

13051305
# Rename 'time' to 'obs_ind' to match CausalPy conventions
13061306
if "time" in y_hat_summed.dims:

docs/source/notebooks/its_pymc copy.ipynb

Lines changed: 1172 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)