Skip to content

Commit

Permalink
Update arviz/stats/diagnostics.py
Browse files Browse the repository at this point in the history
Co-authored-by: Seth Axen <seth@sethaxen.com>
  • Loading branch information
ahartikainen and sethaxen authored Nov 12, 2023
1 parent ed68f86 commit ff971b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arviz/stats/diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ def _ess_sd(ary, relative=False):
ary = np.asarray(ary)
if _not_valid(ary, shape_kwargs=dict(min_draws=4, min_chains=1)):
return np.nan
ary = abs(ary - ary.mean())
ary = (ary - ary.mean())**2
return _ess(_split_chains(ary), relative=relative)


Expand Down

0 comments on commit ff971b8

Please sign in to comment.