Skip to content
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

init_model_methods doesn't work with CmdStanPathfinder object #872

Closed
avehtari opened this issue Nov 10, 2023 · 1 comment · Fixed by #871
Closed

init_model_methods doesn't work with CmdStanPathfinder object #872

avehtari opened this issue Nov 10, 2023 · 1 comment · Fixed by #871
Assignees
Labels
bug Something isn't working

Comments

@avehtari
Copy link
Contributor

> model1 <- cmdstan_model(stan_file = root("Birthdays", "gpbf1.stan"),
                         include_paths = root("Birthdays"),
                         compile_model_methods=TRUE, force_recompile=TRUE)
Compiling Stan program...
> fit1 <- model1$sample(data=standata1, iter_warmup=100, iter_sampling=100, chains=4, parallel_chains=4)
> fit1$init_model_methods()
Compiling additional model methods...
> pth1 <- model1$pathfinder(data = standata1, init=0.1, num_paths=10, single_path_draws=40,
> pth1$init_model_methods()
Error: Model methods cannot be used with a pre-compiled Stan executable, the model must be compiled again

init_model_methods works also with CmdStanLaplace object

@avehtari avehtari added the bug Something isn't working label Nov 10, 2023
jgabry added a commit that referenced this issue Nov 10, 2023
@jgabry
Copy link
Member

jgabry commented Nov 10, 2023

Thanks for catching this! Should be fixed now as part of #871 (on the branch for the v0.7.0 release).

@jgabry jgabry linked a pull request Nov 10, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants