Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: progressbar=False should silence all sampling output #7683

Open
fonnesbeck opened this issue Feb 17, 2025 · 3 comments
Open

ENH: progressbar=False should silence all sampling output #7683

fonnesbeck opened this issue Feb 17, 2025 · 3 comments

Comments

@fonnesbeck
Copy link
Member

fonnesbeck commented Feb 17, 2025

Turning off the progress bar via progressbar=False does remove the progress bar, but other sampling-related initialization output is still printed. This results in a lot of output when sampling is performed in a loop:

Initializing NUTS using jitter+adapt_diag...
Multiprocess sampling (4 chains in 4 jobs)
NUTS: [phi, kappa, theta_raw]
Sampling 4 chains for 1_000 tune and 1_000 draw iterations (4_000 + 4_000 draws total) took 1 seconds.
Sampling: [hits]
Initializing NUTS using jitter+adapt_diag...
Multiprocess sampling (4 chains in 4 jobs)
NUTS: [phi, kappa, theta_raw]
Sampling 4 chains for 1_000 tune and 1_000 draw iterations (4_000 + 4_000 draws total) took 1 seconds.
Sampling: [hits]
Initializing NUTS using jitter+adapt_diag...
Multiprocess sampling (4 chains in 4 jobs)
NUTS: [phi, kappa, theta_raw]
Sampling 4 chains for 1_000 tune and 1_000 draw iterations (4_000 + 4_000 draws total) took 1 seconds.
Sampling: [hits]
Initializing NUTS using jitter+adapt_diag...
Multiprocess sampling (4 chains in 4 jobs)
NUTS: [phi, kappa, theta_raw]
Sampling 4 chains for 1_000 tune and 1_000 draw iterations (4_000 + 4_000 draws total) took 1 seconds.
Sampling: [hits]

setting progressbar=False should either silence all output, or an additional argument should be added in order to do so.

@ricardoV94
Copy link
Member

That's using logs, so you can set the pymc logger to debug

@rchen-05
Copy link

working on this!

@ricardoV94
Copy link
Member

working on this!

I would say this issue still needs consensus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants