Skip to content

init_model_methods doesn't work with CmdStanPathfinder object #872

Closed
@avehtari

Description

@avehtari
> 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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions