Skip to content

avoid unneccessary recompiling of Stan models #6

@wpetry

Description

@wpetry

Compilation often takes longer than model fitting and is repeated for each model fit (even when only the data change). This is potentially confusing to newcomers who lack experience with Stan and frustrating to users who are fitting the same model across many datasets (e.g., comparative or simulation studies) or are working on older machines.

Alternative solutions:

  1. Compile the model when it is first fit, then store in a tempdir for the remainder of the session.
  2. Pre-compile all built-in models during package install. rstanarm offers a good example of how this could be done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions