Open tcuongd opened 2 years ago
@andrjohns not sure if you ever saw this warning:
23:23:47 - cmdstanpy - WARNING - Non-fatal error during sampling:
Exception: normal_id_glm_lpdf: Scale vector is 0, but must be positive finite! (in '/Users/runner/work/prophet/prophet/python/stan/prophet.stan', line 137, column 2 to line 142, column 4)
Exception: normal_id_glm_lpdf: Matrix of independent variables is inf, but must be finite! (in '/Users/runner/work/prophet/prophet/python/stan/prophet.stan', line 137, column 2 to line 142, column 4)
when testing the normal_id_glm
specification for the stan model. It doesn't seem to actually affect sampling, but maybe there's a quick way to prevent it from showing.
Thank you brother! Very useful!
Hi there,
I got value error after running print(m.stan_fit.diagnose())
No CmdStan installation found, run command "install_cmdstan"or (re)activate your conda environment!
However, I checked my conda environment, cmdstan or cmdstanpy is installed. What could be wrong here? Thanks!
This is an FYI / guidance for those who are currently running
cmdstanpy>=1.0.2
, specifically when doing full MCMC sampling (mcmc_samples > 0
). We've noticed thatcmdstanpy
now logs warnings fairly often, even when overall the sampling is healthy and there are no divergences. Details are provided here: https://github.com/stan-dev/cmdstanpy/issues/584The warnings you may see are:
1) Hitting max treedepth:
2) Warnings about variable values
What to do
These warnings may be false positives and the MCMC sampling may have converged just fine. To confirm this, run:
If you see output similar to this:
the sampling procedure likely succeeded and you can trust the results.
If you would like to only show logs from
cmdstanpy
when there is an error (instead of just a warning), you can set the logging level forcmdstanpy
in your script: