mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
var[:,None] added in full_cov = false, sparse_GP
This commit is contained in:
parent
7a54660689
commit
049e60f16b
2 changed files with 3 additions and 4 deletions
|
|
@ -133,7 +133,7 @@ class GP(model):
|
|||
KiKx = np.dot(self.Ki,Kx)
|
||||
if full_cov:
|
||||
Kxx = self.kern.K(_Xnew, slices1=slices,slices2=slices)
|
||||
var = Kxx - np.dot(KiKx.T,Kx) #NOTE is the shape of v right?
|
||||
var = Kxx - np.dot(KiKx.T,Kx) #NOTE this won't work for plotting
|
||||
else:
|
||||
Kxx = self.kern.Kdiag(_Xnew, slices=slices)
|
||||
var = Kxx - np.sum(np.multiply(KiKx,Kx),0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue