bgplvm integrated

This commit is contained in:
Max Zwiessele 2013-11-07 08:52:33 +00:00
parent 8c02e4af36
commit 765ab41045
7 changed files with 22 additions and 23 deletions

View file

@ -33,10 +33,10 @@ class RBFInv(RBF):
.. Note: this object implements both the ARD and 'spherical' version of the function
"""
def __init__(self, input_dim, variance=1., inv_lengthscale=None, ARD=False):
def __init__(self, input_dim, variance=1., inv_lengthscale=None, ARD=False, name='inverse rbf'):
#self.input_dim = input_dim
#self.name = 'rbf_inv'
super(RBFInv, self).__init__(input_dim, variance=variance, lengthscale=1./np.array(inv_lengthscale), ARD=ARD, name='inverse rbf')
super(RBFInv, self).__init__(input_dim, variance=variance, lengthscale=1./np.array(inv_lengthscale), ARD=ARD, name=name)
self.ARD = ARD
if not ARD:
self.num_params = 2