Skip to content

Commit 25eaa71

Browse files
michaelosthegetwiecki
authored andcommitted
Add workaround to make pylint pass until gp.predict is refactored
1 parent 04d1b13 commit 25eaa71

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pymc3/gp/gp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ def predict(self, Xnew, point=None, diag=False, pred_noise=False, given=None):
555555
mu, cov = self.predictt(Xnew, diag, pred_noise, given)
556556
# XXX: This needs to be refactored
557557
# return draw_values([mu, cov], point=point)
558+
return None, None
558559

559560
def predictt(self, Xnew, diag=False, pred_noise=False, given=None):
560561
R"""
@@ -1195,6 +1196,7 @@ def predict(self, Xnew, point=None, diag=False, pred_noise=False):
11951196
mu, cov = self._build_conditional(Xnew, pred_noise, diag)
11961197
# XXX: This needs to be refactored
11971198
# return draw_values([mu, cov], point=point)
1199+
return None, None
11981200

11991201
def predictt(self, Xnew, diag=False, pred_noise=False):
12001202
R"""

pymc3/tests/test_gp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ def testLatent2(self):
813813
npt.assert_allclose(latent_logp, self.logp, atol=5)
814814

815815

816-
@pytest.mark.xfail(reason="MvNormal was not yet refactored")
816+
@pytest.mark.xfail(reason="The `gp.predict` method was not yet refactored")
817817
class TestMarginalVsMarginalSparse:
818818
R"""
819819
Compare logp of models Marginal and MarginalSparse.
@@ -1114,7 +1114,7 @@ def testLatentKronRaisesSizes(self):
11141114
gp.prior("f", Xs=[np.linspace(0, 1, 7)[:, None], np.linspace(0, 1, 5)[:, None]])
11151115

11161116

1117-
@pytest.mark.xfail(reason="MvNormal was not yet refactored")
1117+
@pytest.mark.xfail(reason="The `gp.predict` method was not yet refactored")
11181118
class TestMarginalKron:
11191119
"""
11201120
Compare gp.MarginalKron to gp.Marginal.

0 commit comments

Comments
 (0)