mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-07 11:02:38 +02:00
[basis funcs] memory efficient posterior inference
This commit is contained in:
parent
be40318e0b
commit
a24853da6b
2 changed files with 4 additions and 2 deletions
|
|
@ -136,7 +136,7 @@ class DomainKernel(LinearSlopeBasisFuncKernel):
|
|||
def _phi(self, X):
|
||||
phi = np.where((X>self.start)*(X<self.stop), 1, 0)
|
||||
return phi#((phi-self.start)/(self.stop-self.start))-.5
|
||||
|
||||
|
||||
class LogisticBasisFuncKernel(BasisFuncKernel):
|
||||
def __init__(self, input_dim, centers, variance=1., slope=1., active_dims=None, ARD=False, ARD_slope=True, name='logistic'):
|
||||
self.centers = np.atleast_2d(centers)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue