mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 20:42:39 +02:00
[gradxx] not working with X,X...
This commit is contained in:
parent
b16d57f560
commit
17bfccb457
4 changed files with 41 additions and 23 deletions
|
|
@ -419,7 +419,7 @@ class GP(Model):
|
|||
mumuT = np.einsum('iqd,ipd->iqp', mu_jac, mu_jac)
|
||||
Sigma = np.zeros(mumuT.shape)
|
||||
if var_jac.ndim == 4: # Missing data
|
||||
Sigma[(slice(None), )+np.diag_indices(Xnew.shape[1], 2)] = var_jac.sum(-1)
|
||||
Sigma = var_jac.sum(-1)
|
||||
else:
|
||||
Sigma = self.output_dim*var_jac
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue