mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
fixed a bug in Neil's otherwise tidy hetero kernel.
This commit is contained in:
parent
759cf08016
commit
7ced138520
3 changed files with 48 additions and 25 deletions
|
|
@ -58,6 +58,8 @@ class Kernpart(object):
|
|||
raise NotImplementedError
|
||||
def dK_dX(self, dL_dK, X, X2, target):
|
||||
raise NotImplementedError
|
||||
def dKdiag_dX(self, dL_dK, X, target):
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
|
||||
|
|
@ -97,6 +99,9 @@ class Kernpart_stationary(Kernpart):
|
|||
# wrt lengthscale is 0.
|
||||
target[0] += np.sum(dL_dKdiag)
|
||||
|
||||
def dKdiag_dX(self, dL_dK, X, target):
|
||||
pass # true for all stationary kernels
|
||||
|
||||
|
||||
class Kernpart_inner(Kernpart):
|
||||
def __init__(self,input_dim):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue