mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 12:32:40 +02:00
[dxxdiag] some steps towards the diagonal gradients in xx
This commit is contained in:
parent
a3f458926b
commit
787168a394
4 changed files with 42 additions and 40 deletions
|
|
@ -377,7 +377,7 @@ class GP(Model):
|
|||
if full_cov:
|
||||
dK2_dXdX = kern.gradients_XX(one, Xnew)
|
||||
else:
|
||||
dK2_dXdX = -kern.gradients_XX(one, Xnew).sum(0)
|
||||
dK2_dXdX = kern.gradients_XX(one, Xnew).sum(0)
|
||||
#dK2_dXdX = np.zeros((Xnew.shape[0], Xnew.shape[1], Xnew.shape[1]))
|
||||
#for i in range(Xnew.shape[0]):
|
||||
# dK2_dXdX[i:i+1,:,:] = kern.gradients_XX(one, Xnew[i:i+1,:])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue