Skip to content

Non-zero mean exact GP with explicit basis functions #1931

Answered by wjmaddox
PatLT asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, good point, adding active dims to linear mean would be a good idea for a pull request.

One other thing you could try is to do the sub-setting automatically in the forwards call:

def forward(self, x):
    mean = self.mean_module(x[..., :3]) # the mean only takes as inputs the first two dimensions
    covar = self.mean_module(x)
    return MultivariateNormal(mean, covar)

Replies: 1 comment

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
2 participants