-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
CompatHelper: bump compat for "Turing" to "0.16" #216
CompatHelper: bump compat for "Turing" to "0.16" #216
Conversation
c0e3eb7
to
082d58a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Rob @goedman, I am updating the wrapper here to the updated syntax from Stan but haven't been able to make it work yet, would you be able to take a look? Any pointers will be appreciated. If you try to run the test please make sure to use JuliaSymbolics/Symbolics.jl#255 branch fro Symbolic since that has some updates needed here
I'll have a look a bit later today. Thanks for the heads up. |
Took a quick look yesterday evening. The results vaguely remind me of the problem we had a while ago as the parameters never move away from the initial values given the used priors and hence the tests will fail:
Need to dig deeper into this and understand better what has changed. |
Did it not throw any error for you? |
No it doesn't until line 38 in stan.jl. The same as on CI actions for test(Stan). |
I haven't figured out what you mean with your above hint about Symbolics#255, so I'm clearly missing pieces. |
All priors in |
Yeah, are you using Cmdstan version older than 2.24? The syntax for ODEs has changed after that that's why you need the Symbolics PR. Ref: https://github.com/stan-dev/example-models/tree/master/knitr/convert-odes |
I'm using cmdstan 2.27.0. |
This is what the
whereas with #255 there is nothing in the build logs but this is the issue I think is the blocker, in the
|
Ok, that helps a lot, my Stan Language program differs. Need to fix that first.
Sent from Rob Goedman's iPad Pro
… On Jul 6, 2021, at 09:36, Vaibhav Kumar Dixit ***@***.***> wrote:
This is what the *_build.log looks like for me without the Symbolics branch (and same error code and lines as CI)
Semantic error in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 48, column 14 to column 75:
-------------------------------------------------
46: sigma1 ~ inv_gamma(3.0, 3.0);
47: theta_1 ~normal(1.5, 0.1) T[1.0,1.8];
48: u_hat = ode_rk45_tol(sho, u0, t0, ts, 0.001, 1.0e-6, 100000, theta_1);
^
49: for (t in 1:T){
50: internal_var___u[t,:] ~ normal(u_hat[t,1:2],sigma1);
-------------------------------------------------
Ill-typed arguments supplied to function 'ode_rk45_tol'. Expected arguments:
(real, vector) => vector, vector, real, real[], real, real, int
Instead supplied arguments of incompatible type:
(real, real[], real[], real[], int[]) => real[], vector, real, real[], real, real, int, real
make: *** [/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.hpp] Error 1
whereas with #255 there is nothing in the build logs but this is the issue I think is the blocker, in the *_run.log we have
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Rejecting initial value:
Error evaluating the log probability at the initial value.
Exception: normal_lpdf: Random variable is nan, but must be not nan! (in '/Users/vaibhavdixit/DiffEqBayes.jl/tmp/parameter_estimation_model.stan', line 47, column 6 to column 43)
Initialization between (-2, 2) failed after 100 attempts.
Try specifying initial values, reducing ranges of constrained values, or reparameterizing the model.
Initialization failed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Now I'm at the point where the compilations of the Stan Language program fails, exactly as in your post. I tried simply
Symbolics does include #285.
|
Yeah we merged the PR in Symbolics so you can use the master branch now, it should work with either of |
Thanks. Tried with the master version of Symbolics but still run into the Stan compilation failure. Would you mind sending me your .stan file? I’m up in the mountains today and tomorrow, so definitely Friday I will be able to focus more on this issue. |
Sure, I'll email it |
Somehow parts seem to update ok, but the
This is created in the |
Can you confirm if you are using either Symbolics#master or not? That looks like old syntax, which actually shouldn't work with a new version of CmdStan so it's a little confusing for me at the moment. ref: https://github.com/stan-dev/example-models/blob/master/knitr/convert-odes/convert_odes.Rmd |
Hi Vaibhav, Thank you. That helps, now the In both test setups (runtests.jl in DiffEqBayes as normal and a direct test script using the Stan Language program) I'm now seeing an initialization failure. I'll dig into that one. What surprises me a bit is the unused parameter to |
Looked a bit more into the initialization issue and with below updated script:
I get:
and |
What changes did I make?
Another edit: I dropped the Yet another edit: I think the Is the |
I couldn't get it to work with CmdStan.jl but it's now working with StanSample.jl, do you think we can switch to that? It does have a WIP in the description but we don't really mind that haha 🙂 |
Hi Vaibhav, Not sure what you mean by Either one, StanSample.jl or CmdStan.jl should work but StanSample.jl has more ways of setting up the input and some newer approaches to read in the .csv files created by Stan's cmdstan executable. So in order to understand what was going wrong I switched to using StanSample.jl and test the .stan file created by DiffEqBayes' stan.jl/staninference.jl. When you say Do you think we still need the |
You are absolutely right that I have left StanSample.jl and several others like StanOptimize.jl, etc. too long marked as WIP. Only recently I started to use the Tables.jl interface to handle chains (which in v4 of StanSample.jl etc. will become the default output_format) and looking at AlgebraOfGraphics.jl. Once v4 of these packages is released (late this year?) I will get more serious in deprecating the old CmdStan.jl. So it is really up to you if you prefer to continue with CmdStan.jl for now or switch to StanSample.jl. The changes in DiffEqBayes' stan.jl and stan_inference.jl will be relatively simple. But I would love to see Symbolics.jl's build function to work! |
No I don't think so, I read the Stan docs to check what they could be used for by us by I don't think we need them. I think you agree?
Yeah I find the interface easier to use in this and our test works on it as well now so I'll just update with it but wanted to confirm with you first.
Yes! It finally does. Had to make some changes to Symbolics and created this PR for it JuliaSymbolics/Symbolics.jl#298 which looks like has been merged so it should work with master now. |
Great, I'll pick these changes up once they are on master and play a bit more with them. I really get lost in trying to apply a fix on a pull request on a forked repo. |
This PR has also removed the ABC support we had but there's already been discussion in #192 that it can not be supported going forward so I will take a look at adding a different library from a separate PR. |
This pull request changes the compat entry for the
Turing
package from0.12, 0.13, 0.14, 0.15
to0.12, 0.13, 0.14, 0.15, 0.16
.This keeps the compat entries for earlier versions.
Note: I have not tested your package with this new compat entry. It is your responsibility to make sure that your package tests pass before you merge this pull request.