-
Notifications
You must be signed in to change notification settings - Fork 37
GP: lengthscale: Use inverse-gamma prior if ls_sd = 0
#257
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
Conversation
@seabbs In the manual, |
@seabbs I've tested this. It's ready to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @hsbadr,
Apologies this really got away from me over the summer. This seems like a sensible change and works as advertised. Thanks for pushing this forward!
This is a proposal to address #255. It allows using an inverse-gamma prior on Gaussian process (GP) length-scale parameter while keeping the user interface and the default log-normal prior unchanged. The parameters of the inverse-gamma prior are a function of
ls_max
and have been tested for both short and long simulations where the default prior makes the model unstable. The new prior is more stable for long simulations and adaptively change the distribution based on the simulation length (total number of days) without relying on the user inputs or the fixed defaults. It can be tested by settingls_sd = 0
ingp_opts()
.I haven't updated the docs (
roxygen2::roxygenize()
) or reconfigured because I use the development version on Stan.Here's the summary plot from the example with
gp = gp_opts(ls_sd = 0)
:@seabbs Feel free to make any changes to this proposal.