Skip to content

Commit

Permalink
Unit test coverage for new properties
Browse files Browse the repository at this point in the history
  • Loading branch information
slishak-PX committed Jan 27, 2025
1 parent 452597d commit 8c283df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/models/test_deterministic.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def test_PosteriorMeanModel(self):
train_Y = torch.rand(2, 2)
model = SingleTaskGP(train_X=train_X, train_Y=train_Y)
mean_model = PosteriorMeanModel(model=model)
self.assertTrue(mean_model.num_outputs == train_Y.shape[-1])
self.assertTrue(mean_model.batch_shape == torch.Size([]))

test_X = torch.rand(2, 3)
post = model.posterior(test_X)
Expand Down

0 comments on commit 8c283df

Please sign in to comment.