diff --git a/CHANGELOG.md b/CHANGELOG.md index 0069a12513..5fbf71000d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ ### Maintenance and fixes * Enforced using coordinate values as default labels ([1201](https://github.com/arviz-devs/arviz/pull/1201)) * Integrate `index_origin` with all the library ([1201](https://github.com/arviz-devs/arviz/pull/1201)) +* Fix pareto k threshold typo in reloo function ([1580](https://github.com/arviz-devs/arviz/pull/1580)) ### Deprecation * Deprecated `index_origin` and `order` arguments in `az.summary` ([1201](https://github.com/arviz-devs/arviz/pull/1201)) diff --git a/arviz/stats/stats_refitting.py b/arviz/stats/stats_refitting.py index 15f2942ffa..a5ba3c1de5 100644 --- a/arviz/stats/stats_refitting.py +++ b/arviz/stats/stats_refitting.py @@ -99,7 +99,7 @@ def reloo(wrapper, loo_orig=None, k_thresh=0.7, scale=None, verbose=True): warnings.warn("reloo is an experimental and untested feature", UserWarning) if np.any(khats > k_thresh): - for idx in np.argwhere(khats.values > 0.7): + for idx in np.argwhere(khats.values > k_thresh): if verbose: _log.info("Refitting model excluding observation %d", idx) new_obs, excluded_obs = wrapper.sel_observations(idx)