Merge branch 'devel' of github.com:/sheffieldml/GPy into devel

This commit is contained in:
James Hensman 2015-02-25 16:10:38 +00:00
commit f1da8c0fec
5 changed files with 48 additions and 53 deletions

View file

@ -154,9 +154,9 @@ class Coregionalize(Kern):
def _gradient_reduce_numpy(self, dL_dK, index, index2):
index, index2 = index[:,0], index2[:,0]
dL_dK_small = np.zeros_like(self.B)
for i in range(k.output_dim):
for i in range(self.output_dim):
tmp1 = dL_dK[index==i]
for j in range(k.output_dim):
for j in range(self.output_dim):
dL_dK_small[j,i] = tmp1[:,index2==j].sum()
return dL_dK_small