mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
Fixed bug in the product of kernels with tied parameters
This commit is contained in:
parent
a1568ca1c8
commit
b0f6495ed4
3 changed files with 10 additions and 3 deletions
|
|
@ -62,7 +62,9 @@ class GP(model):
|
|||
|
||||
def _set_params(self,p):
|
||||
self.kern._set_params_transformed(p[:self.kern.Nparam])
|
||||
self.likelihood._set_params(p[self.kern.Nparam:])
|
||||
#self.likelihood._set_params(p[self.kern.Nparam:]) # test by Nicolas
|
||||
self.likelihood._set_params(p[self.kern.Nparam_transformed():]) # test by Nicolas
|
||||
|
||||
|
||||
self.K = self.kern.K(self.X,slices1=self.Xslices)
|
||||
self.K += self.likelihood.covariance_matrix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue