mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
gradients w.r.t. kappa corrected
np.diag(dL_dK_small) needs to be copied
This commit is contained in:
parent
80161665b8
commit
0d995a56b2
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ class Coregionalize(Kern):
|
||||||
dL_dK_small = self._gradient_reduce_numpy(dL_dK, index, index2)
|
dL_dK_small = self._gradient_reduce_numpy(dL_dK, index, index2)
|
||||||
|
|
||||||
|
|
||||||
dkappa = np.diag(dL_dK_small)
|
dkappa = np.diag(dL_dK_small).copy()
|
||||||
dL_dK_small += dL_dK_small.T
|
dL_dK_small += dL_dK_small.T
|
||||||
dW = (self.W[:, None, :]*dL_dK_small[:, :, None]).sum(0)
|
dW = (self.W[:, None, :]*dL_dK_small[:, :, None]).sum(0)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue