[stationary] input_sensitiviy is now 1/(l**2)

This commit is contained in:
Max Zwiessele 2014-05-20 14:47:28 +01:00
parent 533e5fb744
commit 76718a8fcc

View file

@ -180,7 +180,7 @@ class Stationary(Kern):
return np.zeros(X.shape) return np.zeros(X.shape)
def input_sensitivity(self): def input_sensitivity(self):
return np.ones(self.input_dim)/self.lengthscale return np.ones(self.input_dim)/self.lengthscale**2
class Exponential(Stationary): class Exponential(Stationary):
def __init__(self, input_dim, variance=1., lengthscale=None, ARD=False, active_dims=None, name='Exponential'): def __init__(self, input_dim, variance=1., lengthscale=None, ARD=False, active_dims=None, name='Exponential'):