mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
bias kernel psi stats implemented.
This commit is contained in:
parent
cd22c96e00
commit
6d0a7afd4c
6 changed files with 170 additions and 113 deletions
|
|
@ -46,3 +46,40 @@ class bias(kernpart):
|
|||
|
||||
def dKdiag_dX(self,partial,X,target):
|
||||
pass
|
||||
|
||||
def psi0(self, Z, mu, S, target):
|
||||
target += self.variance
|
||||
|
||||
def psi1(self, Z, mu, S, target):
|
||||
target += self.variance
|
||||
|
||||
def psi2(self, Z, mu, S, target):
|
||||
target += self.variance**2
|
||||
|
||||
def dpsi0_dtheta(self, partial, Z, mu, S, target):
|
||||
target += partial.sum()
|
||||
|
||||
def dpsi0_dZ(self, partial, Z, mu, S, target):
|
||||
pass
|
||||
|
||||
def dpsi0_dmuS(self, partial, Z, mu, S, target_mu, target_S):
|
||||
pass
|
||||
|
||||
def dpsi1_dtheta(self, partial, Z, mu, S, target):
|
||||
target += partial.sum()
|
||||
|
||||
def dpsi1_dZ(self, partial, Z, mu, S, target):
|
||||
pass
|
||||
|
||||
def dpsi1_dmuS(self, partial, Z, mu, S, target_mu, target_S):
|
||||
pass
|
||||
|
||||
def dpsi2_dtheta(self, partial, Z, mu, S, target):
|
||||
target += 2.*self.variance*partial.sum()
|
||||
|
||||
def dpsi2_dZ(self, partial, Z, mu, S, target):
|
||||
pass
|
||||
|
||||
def dpsi2_dmuS(self, partial, Z, mu, S, target_mu, target_S):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue