From 440d7b64786f6beed299adde5812d66aec662124 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Mon, 20 Apr 2015 16:03:39 +0200 Subject: [PATCH] [basis funcs] linear slope identifiability higher, symmetry plus true linear effect --- GPy/kern/_src/basis_funcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/kern/_src/basis_funcs.py b/GPy/kern/_src/basis_funcs.py index b6a95354..1b300661 100644 --- a/GPy/kern/_src/basis_funcs.py +++ b/GPy/kern/_src/basis_funcs.py @@ -81,7 +81,7 @@ class LinearSlopeBasisFuncKernel(BasisFuncKernel): def phi(self, X): phi = np.where(X < self.start, self.start, X) phi = np.where(phi > self.stop, self.stop, phi) - return ((phi-self.start)/(self.stop-self.start))-.5 + return ((phi-(self.stop+self.start)/2.))#/(.5*(self.stop-self.start)))-1. return self.concatenate_offset(phi) # ((phi-self.start)/(self.stop-self.start))-.5 class ChangePointBasisFuncKernel(BasisFuncKernel):