Skip to content

Commit

Permalink
Replaced tests
Browse files Browse the repository at this point in the history
  • Loading branch information
esantorella committed Nov 6, 2022
1 parent 9a90c97 commit efaf058
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/models/test_gp_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,23 @@ def _get_model_and_data(
model = HeteroskedasticSingleTaskGP(**model_kwargs)
return model, model_kwargs

def test_custom_init(self) -> None:
"""
This test exists because `TestHeteroskedasticSingleTaskGP` inherits from
`TestSingleTaskGP`, which has a `test_custom_init` method that isn't relevant
for `TestHeteroskedasticSingleTaskGP`.
"""

def test_gp(self):
super().test_gp(double_only=True)

def test_fantasize(self) -> None:
"""
This test exists because `TestHeteroskedasticSingleTaskGP` inherits from
`TestSingleTaskGP`, which has a `fantasize` method that isn't relevant
for `TestHeteroskedasticSingleTaskGP`.
"""

def test_heteroskedastic_likelihood(self):
for batch_shape, m, dtype in itertools.product(
(torch.Size(), torch.Size([2])), (1, 2), (torch.float, torch.double)
Expand Down

0 comments on commit efaf058

Please sign in to comment.