Merge branch 'params' of github.com:SheffieldML/GPy into input_dims

This commit is contained in:
Max Zwiessele 2014-03-12 12:07:15 +00:00
commit 603b70bb6e
2 changed files with 7 additions and 0 deletions

View file

@ -46,6 +46,9 @@ class Add(CombinationKernel):
def update_gradients_diag(self, dL_dK, X):
[p.update_gradients_diag(dL_dK, X) for p in self.parts]
def update_gradients_diag(self, dL_dKdiag, X):
[p.update_gradients_diag(dL_dKdiag, X[:,i_s]) for p, i_s in zip(self._parameters_, self.input_slices)]
def gradients_X(self, dL_dK, X, X2=None):
"""Compute the gradient of the objective function with respect to X.