mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 20:42:39 +02:00
trying to make gp_kronecker models savable
This commit is contained in:
parent
5cb22090ba
commit
48f5c7fa15
1 changed files with 7 additions and 1 deletions
|
|
@ -28,8 +28,14 @@ class GPKroneckerGaussianRegression(Model):
|
|||
}
|
||||
|
||||
"""
|
||||
def __init__(self, X1, X2, Y, kern1, kern2, noise_var=1., name='KGPR'):
|
||||
def __init__(self, X1, X2, Y, kern1=None, kern2=None, noise_var=1., name='KGPR'):
|
||||
Model.__init__(self, name=name)
|
||||
|
||||
if kern1 is None:
|
||||
kern1 = GPy.kern.RBF(X1.shape[1])
|
||||
if kern2 is None:
|
||||
kern2 = GPy.kern.RBF(X2.shape[1])
|
||||
|
||||
# accept the construction arguments
|
||||
self.X1 = ObsAr(X1)
|
||||
self.X2 = ObsAr(X2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue