Skip to content

Computing GP posterior predictive given noisy & noiseless observations #2222

Answered by KeAWang
mjoerke asked this question in Q&A
Discussion options

You must be logged in to vote

If you want to condition a GP on both noisy and noiseless observations, you just need to keep track of which indices are noiseless. See Ch 2 of the GPML book. Instead of adding a noise term to every entry of the diagonal, you only add to the subset of diagonal entries that correspond to indices with observation noise.

You can get what you want by modifying FixedNoiseGaussianLikelihood

class FixedNoiseGaussianLikelihood(_GaussianLikelihoodBase):
with learn_additional_noise=True. All you have to do is mask out the noiseless entries when adding second_noise.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gpleiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants