-
Notifications
You must be signed in to change notification settings - Fork 4
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
Unable to replicate the 'SBC for brms models' #104
Comments
Thanks for reporting! Unfortunately, I don't have access to a macOS machine. I just checked that the vignettes work on Windows and Linux (with quite similar main package versions). I'd like to make sure this isn't an issue with your Stan installation. Are you able to run normal Also a quick note - you can use |
Thank you for your reply! I've ran a number of additional tests:
In summary, with I have no idea what might be going wrong here! I'm running my own model through rstan now and will update if anything unexpected comes about. Otherwise, I guess my only option would be reinstalling |
Oh, I see the source for 'Error: Some 'draw_ids' indices are out of range.' Could you try with the latest version from the main branch? |
For the |
Thanks! I'll retry the rstan version from the main branch in just a bit. Here are the errors I get with the
|
Everything runs fine with |
So I'd guess the error you are getting with
Could you verify that you get the error also when you run simple things like df <- data.frame(y = rnorm(10))
brms::brm(y ~ 1, data = df, backend = "cmdstanr") If that's true, I'd ask you to file a bug at the Also, what's your |
Thanks! Using cmdstan version 2.35.0, I don't get any errors. It definetely seems it's some miscommunication between
|
OK, I was a bit too quick, inspecting the code I realized it is |
And this is a known problem: stan-dev/rstan#1133 |
Thank you! I'm fine sticking to rstan for now, so hopefully the compatibility between CmdStan's newest version and rstan gets resolved by the time I'm ready to calibrate models requiring more computing power. |
So it turns out that the issue can be completely worked around on the SBC side by using |
Hi,
Thank you for a really instructive package! I am having some trouble implementing SBC when using
brms
. It seems that everyting runs fine when usingcmdstanr
, though I am much less knowledgable in stan and would prefer sticking to brms when possible.Using the first example just returns the following errors:
Error in rstan::read_stan_csv(fit$output_files()) : object 'n_kept' not found. In addition: Warning message: In parse_stancsv_comments(comments) : NAs introduced by coercion
The second example (the one I hope to be implementing for my purposes) just returns an empty list for the first two elements:
All packages seem to be up to date and I don't have any other issues running brms models otherwise. I'm not sure what may be going wrong here. Any suggestions would be much appreciated!
Thanks,
Raph
The text was updated successfully, but these errors were encountered: