Skip to content

Adds optional progress bar#144

Merged
gdalle merged 4 commits into
JuliaStats:mainfrom
rsenne:add_pbar_
May 10, 2026
Merged

Adds optional progress bar#144
gdalle merged 4 commits into
JuliaStats:mainfrom
rsenne:add_pbar_

Conversation

@rsenne
Copy link
Copy Markdown
Collaborator

@rsenne rsenne commented May 8, 2026

Resolves #131.

You were right that ProgressLogging was the right move. This PR only adds it as an optional kwarg on Baum-Welch so a user can decide if they need it or not--by default progress::Bool=false. I figure that's the least intrusive addition.

Let me know what you think!

@rsenne
Copy link
Copy Markdown
Collaborator Author

rsenne commented May 8, 2026

Tests are passing after fixing some silly mistakes on my end. But there are issues with codecov--presumably caused by changing repo ownership?

Copy link
Copy Markdown
Member

@gdalle gdalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

fit!(hmm, fb_storage, obs_seq, control_seq; seq_ends)
if baum_welch_has_converged(logL_evolution; atol, loglikelihood_increasing)
break
if progress
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we'd want something like JuliaLogging/ProgressLogging.jl#33 to avoid introducing progress logging overhead when the user deactivates it. As of right now, a bit of code duplication doesn't hurt

Comment thread test/misc.jl
using ProgressLogging: ProgressLevel
using Random: Xoshiro
using Test
using Test: TestLogger
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, didn't know about that one!

@gdalle gdalle merged commit 6220b5b into JuliaStats:main May 10, 2026
2 of 6 checks passed
@gdalle
Copy link
Copy Markdown
Member

gdalle commented May 10, 2026

Tests are passing after fixing some silly mistakes on my end. But there are issues with codecov--presumably caused by changing repo ownership?

I added you as a contributor so that next time you may submit PRs from your clone instead of a fork

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.

Progress bar?

2 participants