slicing finished with independent outputs

This commit is contained in:
Max Zwiessele 2014-03-17 16:22:16 +00:00
parent 62d594d977
commit 19dc7cecf4
3 changed files with 115 additions and 54 deletions

View file

@ -64,7 +64,6 @@ class Add(CombinationKernel):
def gradients_X_diag(self, dL_dKdiag, X):
target = np.zeros(X.shape)
[target.__iadd__(p.gradients_X_diag(dL_dKdiag, X)) for p in self.parts]
#[target.__setitem__([Ellipsis, p.active_dims], target[:, p.active_dims]+p.gradients_X(dL_dK, X, X2)) for p in self.parts]
return target
def psi0(self, Z, variational_posterior):