-
Notifications
You must be signed in to change notification settings - Fork 563
FixedNoiseGaussianLikelihood Noise Not Handled Correctly for LikelihoodLists #2647
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
Comments
The following code handles this if the noise is passed in as an iterable of noise tensors (one for each of the likelihoods): gpytorch/gpytorch/likelihoods/likelihood_list.py Lines 31 to 35 in b017b9c
Does this help? |
The same error occurs if the noise is passed as a list of noise tensors which test_noise = torch.ones(len(test_x))
predictions = likelihood(*model(test_x, test_x), noise=[test_noise, test_noise]) Having looked into it more, there appears to be argument passing issue with the calling of the likelihood function. The likelihood is taking the arguments Does this seem correct or am I missing something? I have included the relevant portion of the trace below:
|
🐛 Bug
When calling
FixedNoiseGaussianLikelihood
with aLikelihoodList
, the noise parameter is passed incorrectly resulting in an attempt to apply index references to a dictionary.To reproduce
Modification to the example here with a
FixedNoiseGaussianLikelihood
likelihood.** Stack trace/error message **
Expected Behavior
Expected to make predictions without error.
System information
Please complete the following information:
Additional context
The error can be fixed by adding an addition check to the
FixedGaussianNoise.forward
method as shown below, however, I am unsure of the unintended effects of making this change.The text was updated successfully, but these errors were encountered: