mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
merged master
This commit is contained in:
commit
6c4528e4da
53 changed files with 1242 additions and 821 deletions
|
|
@ -90,7 +90,7 @@ def toy_rbf_1d(seed=default_seed):
|
|||
N = 500
|
||||
X = np.random.uniform(low=-1.0, high=1.0, size=(N, numIn))
|
||||
X.sort(axis=0)
|
||||
rbf = GPy.kern.rbf(numIn, variance=1., lengthscale=0.25)
|
||||
rbf = GPy.kern.rbf(numIn, variance=1., lengthscale=np.array((0.25,)))
|
||||
white = GPy.kern.white(numIn, variance=1e-2)
|
||||
kernel = rbf + white
|
||||
K = kernel.K(X)
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class WarpingFunction(object):
|
|||
"""inverse function transformation"""
|
||||
raise NotImplementedError
|
||||
|
||||
def get_param_names(self):
|
||||
def _get_param_names(self):
|
||||
raise NotImplementedError
|
||||
|
||||
def plot(self, psi, xmin, xmax):
|
||||
|
|
@ -151,7 +151,7 @@ class TanhWarpingFunction(WarpingFunction):
|
|||
|
||||
return gradients
|
||||
|
||||
def get_param_names(self):
|
||||
def _get_param_names(self):
|
||||
variables = ['a', 'b', 'c']
|
||||
names = sum([['warp_tanh_%s_t%i' % (variables[n],q) for n in range(3)] for q in range(self.n_terms)],[])
|
||||
return names
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue