Skip to content

Commit

Permalink
Use human-readable indexes for xarray object
Browse files Browse the repository at this point in the history
  • Loading branch information
mark committed Jun 13, 2022
1 parent 4e288c2 commit 209992d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bambi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ def predict_sklearn(self, idata, predict_variable, data=None):
ndarray
"""
self.predict(idata, kind="pps", data=data)
return idata.posterior_predictive[predict_variable].mean(axis=(0, 1)).values
return idata.posterior_predictive[predict_variable].mean(("chain", "draw")).values

def graph(self, formatting="plain", name=None, figsize=None, dpi=300, fmt="png"):
"""
Expand Down

0 comments on commit 209992d

Please sign in to comment.