I was checking documentation of Stan, it sems that there is an option for verbose in Pystan 2 , but not Pystan3. Results of sampling(0%–100%) , really clutters the space. I am using jupyter notebook and it really clutters the space. I want some thing so that the sampling % output is hidden.
Setting refresh=0
in the call to sample()
seems to reduce the amount of progress updated printed, but it unfortunately does not get rid of them entire. @ahartikainen or @ariddell may know a way of turning this off completely
1 Like
Thanks it does reduce sampling but still warnings and 0% and 100% things are visible. Is their a way to filter out these.It seems Pythons warning module doesnot work with this thing. have tried but no effect.
I think they are coming from python logging module
So after pystan import one should silence httpstan logger.
Try the following
import stan
import logging
logger = logging.getLogger("httpstan")
logger.setLevel(logging.ERROR)