File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,13 @@ def __init__(
204
204
# causal impact pre (ie the residuals of the model fit to observed)
205
205
pre_data = xr .DataArray (self .pre_y [:, 0 ], dims = ["obs_ind" ])
206
206
self .pre_impact = (
207
- pre_data - self .pre_pred ["posterior_predictive" ]. mu
207
+ pre_data - self .pre_pred ["posterior_predictive" ][ "y_hat" ]
208
208
).transpose (..., "obs_ind" )
209
209
210
210
# causal impact post (ie the residuals of the model fit to observed)
211
211
post_data = xr .DataArray (self .post_y [:, 0 ], dims = ["obs_ind" ])
212
212
self .post_impact = (
213
- post_data - self .post_pred ["posterior_predictive" ]. mu
213
+ post_data - self .post_pred ["posterior_predictive" ][ "y_hat" ]
214
214
).transpose (..., "obs_ind" )
215
215
216
216
# cumulative impact post
You can’t perform that action at this time.
0 commit comments