mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 12:02:38 +02:00
[spgp minibatch] linear calls the right psicomps and add kernel
This commit is contained in:
parent
bf3c579cc6
commit
8fa5b67089
5 changed files with 16 additions and 13 deletions
|
|
@ -171,8 +171,7 @@ class SparseGPMiniBatch(SparseGP):
|
|||
variational_posterior=self.X,
|
||||
Z=self.Z, dL_dpsi0=full_values['dL_dpsi0'],
|
||||
dL_dpsi1=full_values['dL_dpsi1'],
|
||||
dL_dpsi2=full_values['dL_dpsi2'],
|
||||
psi0=self.psi0, psi1=self.psi1, psi2=self.psi2)
|
||||
dL_dpsi2=full_values['dL_dpsi2'])
|
||||
self.kern.gradient += kgrad
|
||||
|
||||
|
||||
|
|
@ -182,8 +181,7 @@ class SparseGPMiniBatch(SparseGP):
|
|||
variational_posterior=self.X,
|
||||
Z=self.Z, dL_dpsi0=full_values['dL_dpsi0'],
|
||||
dL_dpsi1=full_values['dL_dpsi1'],
|
||||
dL_dpsi2=full_values['dL_dpsi2'],
|
||||
psi0=self.psi0, psi1=self.psi1, psi2=self.psi2)
|
||||
dL_dpsi2=full_values['dL_dpsi2'])
|
||||
else:
|
||||
#gradients wrt kernel
|
||||
self.kern.update_gradients_diag(full_values['dL_dKdiag'], self.X)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue