Consistent Sample from GP #2398
Unanswered
HanyangHenry-Wang
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Is this unexpected? The samples are random, and so calling sample or rsample multiple times should return different answers. |
Beta Was this translation helpful? Give feedback.
1 reply
-
rsample on GPyTorch's MultivariateNormal can take a set of base samples (the standard Normal samples that are transformed to the correct distribution): If you specify base samples as a fixed |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am now trying to write a GP-generated objective function but I found that "rsample" and "sample" will not give the consistent GP sample. To be more specific, "rsample" and "sample" will give different value at the same X, which means that the underlying GP samples are different.
What I would like to do is to sample X repeatedly from the same GP sample. Is it possible to do it with gpytorch? Thank you!
Here is my code and the result:
Beta Was this translation helpful? Give feedback.
All reactions