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

Store and expose stanc_options #814

Open
martinmodrak opened this issue Aug 9, 2023 · 3 comments
Open

Store and expose stanc_options #814

martinmodrak opened this issue Aug 9, 2023 · 3 comments
Labels
feature New feature or request

Comments

@martinmodrak
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In development of the SBC package I need somewhat reliable way to see if a model has changed from a previous version. I'd like to be able to also check if stanc options differ from previous compilation.

Describe the solution you'd like
CmdStanModel already has a $stanc_options_ member, so presumably this was planned at some point. The member should store the stanc options used for the latest compilation (including all automatic modifications done in $compile())

Describe alternatives you've considered
Alternatively, we could have CmdStan provide an "info" method for a compile model that lets us retrieve the stanc and C++ options used for compilation. This would be more reliable, but requires changes to CmdStan.

@martinmodrak martinmodrak added the feature New feature or request label Aug 9, 2023
@martinmodrak
Copy link
Contributor Author

I should also note that if an agreement on how this should be implemented is made, I am happy to prepare a pull request.

@jgabry
Copy link
Member

jgabry commented Aug 9, 2023

Alternatively, we could have CmdStan provide an "info" method for a compile model that lets us retrieve the stanc and C++ options used for compilation. This would be more reliable, but requires changes to CmdStan.

Yeah this does seem more reliable and could also be used by CmdStanPy and other CmdStan wrappers. But if it seems unlikely to get into CmdStan anytime soon (I’m not sure) then we could do something in CmdStanR.

@martinmodrak
Copy link
Contributor Author

Started a CmdStan issue at stan-dev/cmdstan#1178 - we'll see if there's agreement to implement this.

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

No branches or pull requests

2 participants