mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-29 06:46:22 +02:00
minor error in corregionalization corrected
This commit is contained in:
parent
6435b83c7a
commit
b49228d1d0
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue