Skip to content

Commit

Permalink
Remove unused variables, correct typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
alicjapolanska committed May 1, 2024
1 parent d1b9869 commit 8417a7e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions harmonic/evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,6 @@ def add_chains(self, chains):

X = chains.samples
Y = chains.ln_posterior
running_sum = self.running_sum
nsamples_per_chain = self.nsamples_per_chain
nsamples_eff_per_chain = self.nsamples_eff_per_chain
nchains = self.nchains

if self.batch_calculation:
Expand All @@ -261,7 +258,7 @@ def add_chains(self, chains):
lnargs = lnargs.at[jnp.isinf(lnargs)].set(jnp.nan)

else:
# lnpred = np.zeros_like(Y)
lnpred = np.zeros_like(Y)
lnargs = np.zeros_like(Y)
for i_chains in range(nchains):
i_samples_start = chains.start_indices[i_chains]
Expand Down

0 comments on commit 8417a7e

Please sign in to comment.