You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: clarify reff is computed from inverse of unsmoothed importance ratios (#88)
* docs: clarify `reff` is computed from inverse of unsmoothed importance ratios
Fix#76: `reff` was documented as the relative
efficiency of the unsmoothed importance ratios, but it is the relative
efficiency of their *inverse* (matching Stan's `loo::psis` definition
`r_eff = ess(1/r) / S`). Update the `PSISResult`, `psis`/`psis!`, and
`ess_is` docstrings accordingly.
Also fix the analogue of arviz-devs/PosteriorStats.jl#54 in the `psis`
jldoctest: the example computed `reff` directly from `log_ratios`, which
gives a different ESS than the correct computation on the inverse
ratios. Switch to `ess(softmax(-log_ratios; dims=(1, 2)); ...)` —
equivalent to `ess(1 ./ exp.(log_ratios); ...)` but numerically stable.
Add `LogExpFunctions` to the docs environment so `softmax` is available,
and regenerate the expected output table.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Bump version to 0.9.9
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments