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

Pretty print diagnostic summaries #255

Open
avehtari opened this issue Aug 29, 2022 · 1 comment
Open

Pretty print diagnostic summaries #255

avehtari opened this issue Aug 29, 2022 · 1 comment
Labels
feature New feature or request interface Interface improvements or changes

Comments

@avehtari
Copy link
Collaborator

summarise_draws() computes the summaries and outputs a tibble which is useful, but for notebooks it would be nice to have pretty printed output. I like the rstan::monitor() output

> monitor(samp, probs = c(0.25, 0.5, 0.75), digits_summary = 2)
Inference for the input samples (1 chains: each with iter = 2001; warmup = 1000):

     Q5 Q50 Q95 Mean  SD  Rhat Bulk_ESS Tail_ESS
V1 -0.9 0.2 1.5  0.2 0.8  1.14        5       15
V2 -0.9 0.2 1.5  0.2 0.8  1.15        5       18

For each parameter, Bulk_ESS and Tail_ESS are crude measures of 
effective sample size for bulk and tail quantities respectively (an ESS > 100 
per chain is considered good), and Rhat is the potential scale reduction 
factor on rank normalized split chains (at convergence, Rhat <= 1.05).

Specifically, for the possibility to define the number of digits and always rounding the ESSs.

It seems pillar is not flexible enough for formatting, so it seems monitor() style text output would be easier. It would be cool to have another function for pretty tables, but there are benefits for the simpler monitor() style output, too.

This is related to several earlier issues #44, #97, #120, #185 which mention only some parts of this issue

@paul-buerkner paul-buerkner added the feature New feature or request label Aug 30, 2022
@paul-buerkner paul-buerkner added the interface Interface improvements or changes label Nov 29, 2022
@paul-buerkner
Copy link
Collaborator

When #257 is implemented, do you think this issue here is still needed @avehtari?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request interface Interface improvements or changes
Projects
None yet
Development

No branches or pull requests

2 participants