Skip to content

Show the ETA during sampling using an estimate of expected number of iterations #505

Open
segasai wants to merge 6 commits into
masterfrom
eta_branch
Open

Show the ETA during sampling using an estimate of expected number of iterations #505
segasai wants to merge 6 commits into
masterfrom
eta_branch

Conversation

@segasai
Copy link
Copy Markdown
Collaborator

@segasai segasai commented Apr 30, 2026

This branch is an attempt to provide an ETA for the run.
I always had to do mental arithmetics with dlogz, but this branch encodes it:
So when one runs dynesty we get now:

52%|▌| 2119/4114 [00:15<00:11, 176.39it/s, batch: 0 | bound: 135 | nc: 251 | ncall: 396570 | eff(%): 0.534 | loglstar: -inf < -163.207 < inf | logz:

The calculations are approximate, assuming that dlogz exponentially decays with the current rate, but in the right ballpark so I still think this is probably useful.

The patch also includes the fix to the iteration rate at the beginning of the restored sampler.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 30, 2026

Coverage Report for CI Build 25509939358

Coverage decreased (-0.02%) to 91.895%

Details

  • Coverage decreased (-0.02%) from the base build.
  • Patch coverage: 7 uncovered changes across 1 file (103 of 110 lines covered, 93.64%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
py/dynesty/utils.py 108 101 93.52%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4158
Covered Lines: 3821
Line Coverage: 91.9%
Coverage Strength: 0.92 hits per line

💛 - Coveralls

@segasai segasai changed the title try to show the ETA for the base run using an estimate of number of iterations Show the ETA during sampling using an estimate of expected number of iterations May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants