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

VGP update: add comments #54

Merged
merged 3 commits into from
Nov 23, 2020
Merged

Conversation

st--
Copy link
Member

@st-- st-- commented Nov 12, 2020

Also, not sure if it's as intended, but if you plan at some point to wrap model predictions in tf.function() as well to increase the runtime speed/efficiency, this will break for (S)GPR - for that, you would have to replace X and Y with tf.Variables() which you .assign() instead of overwriting. Happy to contribute that as a PR if you think it's useful.

S_v = tf.linalg.triangular_solve(Lnn[None], tf.linalg.matrix_transpose(tmp)) # [L, N, N]
new_q_sqrt = tf.linalg.cholesky(S_v + tf.eye(num_data, dtype=Knn.dtype) * jitter) # [L, N, N]
new_q_sqrt = tf.linalg.cholesky(S_v + jitter_mat) # [L, N, N]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm trying to get some context: should this code be available in gpflow instead, since this is trying to be generic anyway?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that there is a function already but couldn't get it to work - besides it's not used everywhere in gpflow

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which function is that?

@joelberkeley joelberkeley merged commit 0cfd0f4 into secondmind-labs:develop Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants