mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-21 14:05:14 +02:00
Full Linear kernel added, inc testing
This commit is contained in:
parent
ed2aaab4bb
commit
17c2799b1e
5 changed files with 52 additions and 3 deletions
|
|
@ -64,7 +64,7 @@ class RBF(Stationary):
|
|||
if self.ARD:
|
||||
self.lengthscale.gradient = (dL_dpsi1[:,:,None]*_dpsi1_dlengthscale).reshape(-1,self.input_dim).sum(axis=0)
|
||||
else:
|
||||
self.lengthscale.gradient = (dL_dpsi1[:,:,None]*_dpsi1_dlengthscale).sum()
|
||||
self.lengthscale.gradient = (dL_dpsi1[:,:,None]*_dpsi1_dlengthscale).sum()
|
||||
|
||||
#from psi2
|
||||
self.variance.gradient += (dL_dpsi2 * _dpsi2_dvariance).sum()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue