Skip to content

Commit

Permalink
copy psislw input
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia committed Sep 6, 2024
1 parent 5a928fb commit 80f0b45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arviz/stats/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,7 @@ def psislw(log_weights, reff=1.0):
...: az.psislw(-log_likelihood, reff=0.8)
"""
log_weights = deepcopy(log_weights)
if hasattr(log_weights, "__sample__"):
n_samples = len(log_weights.__sample__)
shape = [
Expand Down

0 comments on commit 80f0b45

Please sign in to comment.