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
cmdstanr backend with save_warmup = TRUE
: shinystan error
#1257
Labels
Milestone
Comments
fweber144
changed the title
**cmdstanr** backend with
cmdstanr backend with Oct 31, 2021
save_warmup = TRUE
: **shinystan** errorsave_warmup = TRUE
: shinystan error
I don't know what is going on there. Does the same thing happen with a manual cmdstanr fit? |
You mean something like the following? That works for me. library(cmdstanr)
options(mc.cores = parallel::detectCores())
sdat <- list(N = 10, y = c(0, 1, 0, 0, 0, 0, 0, 0, 0, 1))
smod <- cmdstan_model(
stan_file = file.path(cmdstan_path(),
"examples",
"bernoulli",
"bernoulli.stan")
)
sfit <- smod$sample(
data = sdat,
refresh = 0,
save_warmup = TRUE,
seed = 15337L
)
# Create object of class `stanfit`:
sfit <- rstan::read_stan_csv(sfit$output_files())
library(shinystan)
launch_shinystan(sfit)
|
Should now be fixed. |
Unfortunately, when running the reprex from my initial comment, I still get the same error. Does it work for you? |
paul-buerkner
added a commit
that referenced
this issue
Apr 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After fitting a model with the cmdstanr backend and
save_warmup = TRUE
, launching the shinystan app raises an error. I'm not sure if this is really related to brms, but that was my first guess.Reprex:
with the last line throwing the error
Session info:
CmdStan version:
EDIT: Added CmdStan version and fixed syntax highlighting.
The text was updated successfully, but these errors were encountered: