Skip to content

What is the usage of condition_on_observations? #2025

Answered by saitcakmak
Sam4896 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Sam4896

According to my understanding after reading the comment in the library and the code, the condition_on_observation function is used to update the model for the new observation.

condition_on_observations is primarily used when fantasizing from the model, e.g., when using a knowledge gradient type acquisition function.

If my understanding is correct, why can't we just do GPmodel(torch.cat([old_y, new_y]), torch.cat([old_y, new_y]))?

This is what we typically do. If you check the tutorials on the website, all of them will be doing this rather than using condition_on_observations.

Why and when is the condition_on_observations?

There's the fantasize usage mentioned above. Othe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sam4896
Comment options

Answer selected by Sam4896
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants