mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
added dKdiag_dtheta for linear
This commit is contained in:
parent
3ffa8d782c
commit
c5f4bcd02b
1 changed files with 7 additions and 0 deletions
|
|
@ -92,6 +92,13 @@ class linear(kernpart):
|
|||
self._psi_computations(Z,mu,S)
|
||||
target += np.sum(self.variances*self.mu2_S,1)
|
||||
|
||||
def dKdiag_dtheta(self,partial, X, target):
|
||||
tmp = partial[:,None]*X**2
|
||||
if self.ARD:
|
||||
target += tmp.sum(0)
|
||||
else:
|
||||
target += tmp.sum()
|
||||
|
||||
def dpsi0_dtheta(self,partial,Z,mu,S,target):
|
||||
self._psi_computations(Z,mu,S)
|
||||
tmp = partial[:, None] * self.mu2_S
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue