mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-14 14:32:37 +02:00
kerns
This commit is contained in:
parent
e7a9a6a2fa
commit
63321e8409
18 changed files with 1861 additions and 0 deletions
53
GPy/kern/kernpart.py
Normal file
53
GPy/kern/kernpart.py
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
class kernpart(object):
|
||||
def __init__(self,D):
|
||||
"""
|
||||
The base class for a kernpart: a positive definite function which forms part of a kernel
|
||||
|
||||
:param D: the number of input dimensions to the function
|
||||
:type D: int
|
||||
"""
|
||||
self.D = D
|
||||
self.Nparam = 1.
|
||||
self.name = 'white'
|
||||
self.set_param(np.array([variance]).flatten())
|
||||
|
||||
def get_param(self):
|
||||
raise NotImplementedError
|
||||
def set_param(self,x):
|
||||
raise NotImplementedError
|
||||
def get_param_names(self):
|
||||
raise NotImplementedError
|
||||
def K(self,X,X2,target):
|
||||
raise NotImplementedError
|
||||
def Kdiag(self,X,target):
|
||||
raise NotImplementedError
|
||||
def dK_dtheta(self,X,X2,target):
|
||||
raise NotImplementedError
|
||||
def dKdiag_dtheta(self,X,target):
|
||||
raise NotImplementedError
|
||||
def psi0(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi0_dtheta(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi0_dmuS(self,Z,mu,S,target_mu,target_S):
|
||||
raise NotImplementedError
|
||||
def psi1(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi1_dtheta(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi1_dZ(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi1_dmuS(self,Z,mu,S,target_mu,target_S):
|
||||
raise NotImplementedError
|
||||
def psi2(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi2_dZ(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi2_dtheta(self,Z,mu,S,target):
|
||||
raise NotImplementedError
|
||||
def dpsi2_dmuS(self,Z,mu,S,target_mu,target_S):
|
||||
raise NotImplementedError
|
||||
def dK_dX(self,X,X2,target):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue