[stationary] lengthscales will be scaled by variance now

This commit is contained in:
Max Zwiessele 2014-11-28 10:10:52 +00:00
parent be40307597
commit 45ede97d85

View file

@ -283,7 +283,7 @@ class Stationary(Kern):
return np.zeros(X.shape) return np.zeros(X.shape)
def input_sensitivity(self, summarize=True): def input_sensitivity(self, summarize=True):
return np.ones(self.input_dim)/self.lengthscale**2 return self.variance*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'):