-
Notifications
You must be signed in to change notification settings - Fork 563
[Bug] settings.variational_cholesky_jitter does not work in run time #2244
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
Labels
Comments
Agreed. It should be possible to set this value dynamically, rather than when the model is initialized. Additionally, it doesn't really make sense to have a bunch of different context managers for jitter values - we should think about consolidating them. I'll put up a PR soon. |
gpleiss
added a commit
that referenced
this issue
Jan 17, 2023
Previously, this context manager was only used when VariationalStrategy modules were initialized. With this change, gpytorch.settings.variational_cholesky_jitter will dynamically change the jitter value (for variational models already in use), unless the user specifies a `jitter_val` in the VariationalStrategy constructor. In addition, this PR adds type hintsd to a majority of the VariationalStrategy modules. [Fixes #2244]
gpleiss
added a commit
that referenced
this issue
Jan 17, 2023
Previously, this context manager was only used when VariationalStrategy modules were initialized. With this change, gpytorch.settings.variational_cholesky_jitter will dynamically change the jitter value (for variational models already in use), unless the user specifies a `jitter_val` in the VariationalStrategy constructor. In addition, this PR adds type hintsd to a majority of the VariationalStrategy modules. [Fixes #2244]
gpleiss
added a commit
that referenced
this issue
Mar 6, 2023
Previously, this context manager was only used when VariationalStrategy modules were initialized. With this change, gpytorch.settings.variational_cholesky_jitter will dynamically change the jitter value (for variational models already in use), unless the user specifies a `jitter_val` in the VariationalStrategy constructor. In addition, this PR adds type hintsd to a majority of the VariationalStrategy modules. [Fixes #2244]
gpleiss
added a commit
that referenced
this issue
Mar 6, 2023
…#2255) * gpytorch.settings.variational_cholesky_jitter can be set dynamically. Previously, this context manager was only used when VariationalStrategy modules were initialized. With this change, gpytorch.settings.variational_cholesky_jitter will dynamically change the jitter value (for variational models already in use), unless the user specifies a `jitter_val` in the VariationalStrategy constructor. In addition, this PR adds type hintsd to a majority of the VariationalStrategy modules. [Fixes #2244] * Small doc fix * WIP * Include side in LMCVarStrat docstring
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
To reproduce
Using
settings.variational_cholesky_jitter
in the model run time does not change the actual jitter value** Code snippet to reproduce **
** Stack trace/error message **
The printed output is 0.0001, which is the default jitter value.
Expected Behavior
Expected value is 1e-2.
Additional context
In fact, the jitter value can be set through
settings
when instantiating the model:The printed output is 1e-2, which is expected. However, such way of setting variational_cholesky_jitter value is not consistent with other settings, e.g.
settings.cholesky_jitter
.The text was updated successfully, but these errors were encountered: