-
Notifications
You must be signed in to change notification settings - Fork 434
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
Implement natural gradient optimization for q_diag=True #878
Comments
The nat grads update isn't implemented for q_diag=True. I'm not sure how this work, but I'd like to think about it. In any case, the documentation should state that nat grads are only applicable for the full q_sqrt case |
I've not liked q_diag=True in the past as it has odd properties, but it does save on memory and also saves a big matmul |
Just noticed this hanging around issue of mine.
for q_sqrt.unconstrained is
|
Yes you're right it would be simple to implement the nat grads directly via the fisher. The nat grad code uses autodiff, however, which is probably still fine but would require a new transform. |
@Joshuaalbert @hughsalimbeni I'm assuming this issue would apply the same to gpflow 2.0? |
Description
Running an SVGP with NatGrad optimizer fails because
meanvarsqrt_to_natural
expects a full covariance shape.MVCE
The text was updated successfully, but these errors were encountered: