[basis funcs] linear slope identifiability higher, symmetry plus true linear effect

This commit is contained in:
mzwiessele 2015-04-20 16:03:39 +02:00
parent e7650c8a90
commit 440d7b6478

View file

@ -81,7 +81,7 @@ class LinearSlopeBasisFuncKernel(BasisFuncKernel):
def phi(self, X): def phi(self, X):
phi = np.where(X < self.start, self.start, X) phi = np.where(X < self.start, self.start, X)
phi = np.where(phi > self.stop, self.stop, phi) 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 return self.concatenate_offset(phi) # ((phi-self.start)/(self.stop-self.start))-.5
class ChangePointBasisFuncKernel(BasisFuncKernel): class ChangePointBasisFuncKernel(BasisFuncKernel):