mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
removed visualize dependencies and added dKdiag_dX for linear
This commit is contained in:
parent
5b5224dae3
commit
1238252a19
2 changed files with 4 additions and 1 deletions
|
|
@ -100,6 +100,9 @@ class linear(Kernpart):
|
|||
def dK_dX(self, dL_dK, X, X2, target):
|
||||
target += (((X2[:, None, :] * self.variances)) * dL_dK[:, :, None]).sum(0)
|
||||
|
||||
def dKdiag_dX(self,dL_dKdiag,X,target):
|
||||
target += 2.*self.variances*dL_dKdiag[:,None]*X
|
||||
|
||||
#---------------------------------------#
|
||||
# PSI statistics #
|
||||
#---------------------------------------#
|
||||
|
|
|
|||
|
|
@ -11,6 +11,6 @@ import misc
|
|||
import warping_functions
|
||||
import datasets
|
||||
import mocap
|
||||
import visualize
|
||||
#import visualize
|
||||
import decorators
|
||||
import classification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue