Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added optional kwargs to ExactMarginalLogLikelihood call #2522

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gpytorch/mlls/exact_marginal_log_likelihood.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _add_other_terms(self, res, params):

return res

def forward(self, function_dist, target, *params):
def forward(self, function_dist, target, *params, **kwargs):
r"""
Computes the MLL given :math:`p(\mathbf f)` and :math:`\mathbf y`.

Expand All @@ -63,7 +63,7 @@ def forward(self, function_dist, target, *params):
raise RuntimeError("ExactMarginalLogLikelihood can only operate on Gaussian random variables")

# Determine output likelihood
output = self.likelihood(function_dist, *params)
output = self.likelihood(function_dist, *params, **kwargs)

# Remove NaN values if enabled
if settings.observation_nan_policy.value() == "mask":
Expand Down
Loading