From 2f3e0611f84b26c2cb38a427941d3d6da2d75a9f Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Mon, 24 Feb 2014 14:57:05 +0000 Subject: [PATCH] fixed stationary again --- GPy/kern/_src/stationary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/kern/_src/stationary.py b/GPy/kern/_src/stationary.py index 19f531f2..3b8e391b 100644 --- a/GPy/kern/_src/stationary.py +++ b/GPy/kern/_src/stationary.py @@ -215,7 +215,7 @@ class Cosine(Stationary): def __init__(self, input_dim, variance=1., lengthscale=None, ARD=False, name='Cosine'): super(Cosine, self).__init__(input_dim, variance, lengthscale, ARD, name) - def K_of_r(self, r) + def K_of_r(self, r): return self.variance * np.cos(r) def dK_dr(self, r): @@ -238,7 +238,7 @@ class RatQuad(Stationary): self.power = Param('power', power, Logexp()) self.add_parameters(self.power) - def K_of_r(self, r) + def K_of_r(self, r): return self.variance*(1. + r**2/2.)**(-self.power) def dK_dr(self, r):