Skip to content

Can PosteriorTransform convert a multi-output GP to a SingleTaskGP object? #1280

Answered by saitcakmak
r-ashwin asked this question in Q&A
Discussion options

You must be logged in to vote

it does the transform to the posterior at a given candidate set X

Yeah, that's pretty much what it is designed for.

I want is to obtain another SingleTaskGPModel module subclass as the result of the ScalarizedPosteriorTransform.

I think this would require you to transform the prior functions, i.e. the mean_module and the covar_module, and to transform them as functions rather than point-wise as is done with ScalarizedPosteriorTransform. One hacky way to do it (which is again point-wise) would be to simply apply the ScalarizedPosteriorTransform at the forward call. I am not sure how well this would work, and if you do this, it wouldn't work with fantasize. So, probably not a great idea…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by saitcakmak
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #1192 on June 29, 2022 22:33.