Skip to content

Commit

Permalink
rm expensive lines in estimator related to chain log
Browse files Browse the repository at this point in the history
  • Loading branch information
JBjoernskov committed Jan 15, 2024
1 parent af296d6 commit 596a6d0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions twin4build/estimator/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ def run_emcee_estimation(self,
for i, ensemble in tqdm(enumerate(chain.iterate(n_sample)), total=n_sample):
if i<burnin-2:
self.beta = betas[i]
result["integratedAutoCorrelatedTime"].append(chain.get_acts())
result["chain.jumps_accepted"].append(chain.jumps_accepted.copy())
result["chain.jumps_proposed"].append(chain.jumps_proposed.copy())
result["chain.swaps_accepted"].append(chain.swaps_accepted.copy())
result["chain.swaps_proposed"].append(chain.swaps_proposed.copy())
# result["integratedAutoCorrelatedTime"].append(chain.get_acts())
# result["chain.jumps_accepted"].append(chain.jumps_accepted.copy())
# result["chain.jumps_proposed"].append(chain.jumps_proposed.copy())
# result["chain.swaps_accepted"].append(chain.swaps_accepted.copy())
# result["chain.swaps_proposed"].append(chain.swaps_proposed.copy())

if i % n_save_checkpoint == 0:
result["chain.logl"] = chain.logl[:i]
Expand Down

0 comments on commit 596a6d0

Please sign in to comment.