Replies: 1 comment 4 replies
-
class QuadraticMean(gpytorch.means.Mean):
def __init__(self):
# Define parameters for your quadratic
self.a = -2. # could be a learnable parameter
def forward(self, x):
return self.a * x.norm(dim=-1) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to define a negative quadratic function as prior for the mean?
Beta Was this translation helpful? Give feedback.
All reactions