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

Reusing compiled model objects #120

Open
EoinTravers opened this issue Sep 11, 2020 · 0 comments
Open

Reusing compiled model objects #120

EoinTravers opened this issue Sep 11, 2020 · 0 comments

Comments

@EoinTravers
Copy link

In rstan, it's possible to compile a model without providing any data or doing any sampling, and then use provide data and draw samples in a subsequent call; something like:

library(rstan)
empty_model = stan('my_model.stan', iter=0)
full_model = stan(fit=empty_model, data=my_data, iter=2000)

Would it be reasonable to do something similar here? This would mean that a) users could fit the model on multiple data sets without recompiling, and b) it wouldn't be necessary to recompile the model if a mistake was made providing the data.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant