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

Make silent option to be really silent #1076

Closed
avehtari opened this issue Jan 26, 2021 · 3 comments
Closed

Make silent option to be really silent #1076

avehtari opened this issue Jan 26, 2021 · 3 comments
Labels
Milestone

Comments

@avehtari
Copy link
Contributor

brm says

  silent: Logical; If TRUE (the default), most of the informational
          messages of compiler and sampler are suppressed. The actual
          sampling progress is still printed. Set ‘refresh = 0’ to turn
          this off as well. If using ‘backend = "rstan"’ you can also
          set ‘open_progress = FALSE’ to prevent opening additional
          progress bars.

I wish silent option could be used to suppress all possible messages, especially the ones generated by brms package itself or the ones that can be easily suppressed when calling other packages. Specifically, I was surprised that silent=TRUE still prints Start sampling and I would prefer that it would already be suppressed with silent=TRUE. For suppressing messages from other packages I'm open for silent to have additional possible values.

@hsbadr
Copy link
Contributor

hsbadr commented Jan 27, 2021

I vote for verbosity level (e.g., 0-2) where 0 suppresses everything [NONE], 1 keeps main/important info messages [INFO], and 2 verbose all messages for debugging [DEBUG]. The number of levels can change depending on what you want to show, but if it ends up with 2 levels, then silent logical is obviously enough.

@paul-buerkner
Copy link
Owner

I agree using verbosity levels (3 or even 4 levels) is a good idea!

@paul-buerkner paul-buerkner added this to the brms 2.14.0++ milestone Mar 1, 2021
paul-buerkner added a commit that referenced this issue Mar 9, 2021
@paul-buerkner
Copy link
Owner

I just implemented silent = 2 for more silence.

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

No branches or pull requests

3 participants