Skip to content

Commit 6a4ca01

Browse files
committed
fix gp tests
1 parent 16d80f1 commit 6a4ca01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/models/test_gptorch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
@pytest.fixture
1515
def sample_data_y1d():
16-
X, y = make_regression(n_samples=10, n_features=5, n_targets=1, random_state=0)
16+
X, y = make_regression(n_samples=20, n_features=5, n_targets=1, random_state=0)
1717
return X, y
1818

1919

2020
@pytest.fixture
2121
def sample_data_y2d():
22-
X, y = make_regression(n_samples=10, n_features=5, n_targets=2, random_state=0)
22+
X, y = make_regression(n_samples=20, n_features=5, n_targets=2, random_state=0)
2323
return X, y
2424

2525

@@ -28,7 +28,7 @@ def test_multi_output_gpmt(sample_data_y2d):
2828
X, y = sample_data_y2d
2929
gp = GaussianProcessMT(random_state=42)
3030
gp.fit(X, y)
31-
assert gp.predict(X).shape == (10, 2)
31+
assert gp.predict(X).shape == (20, 2)
3232

3333

3434
def test_predict_with_uncertainty_gpmt(sample_data_y1d):
@@ -62,7 +62,7 @@ def test_multioutput_gp(sample_data_y2d):
6262
X, y = sample_data_y2d
6363
gp = GaussianProcess(random_state=42)
6464
gp.fit(X, y)
65-
assert gp.predict(X).shape == (10, 2)
65+
assert gp.predict(X).shape == (20, 2)
6666

6767

6868
def test_predict_with_uncertainty_gp(sample_data_y1d):

0 commit comments

Comments
 (0)