mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 02:52:40 +02:00
[basis funcs] linear slope identifiability higher, symmetry plus true linear effect
This commit is contained in:
parent
e7650c8a90
commit
440d7b6478
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue