Skip to content

Commit 21b71f1

Browse files
committed
small changes
1 parent 15a6f7a commit 21b71f1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pymc3/gp/cov.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def diag(self, X):
185185

186186
def full(self, X, Xs=None):
187187
if Xs is None:
188-
return tt.square(self.sigma) * tt.eye(X.shape[0])
188+
return tt.diag(self.diag(X))
189189
else:
190190
return tt.alloc(0.0, X.shape[0], Xs.shape[0])
191191

pymc3/gp/gp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,7 @@ def predict(self, Xnew, point=None, diag=False, pred_noise=False, given={}):
502502
Same as `conditional` method.
503503
"""
504504
mu, cov = self.predictt(Xnew, diag, pred_noise, given)
505-
mu, cov = draw_values([mu, cov], point=point)
506-
return mu, cov
505+
return draw_values([mu, cov], point=point)
507506

508507
def predictt(self, Xnew, diag=False, pred_noise=False, given={}):
509508
R"""

0 commit comments

Comments
 (0)