mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 01:32:40 +02:00
bug fixed in example (in regression.py)
This commit is contained in:
parent
fd585d46b5
commit
a76c53e699
2 changed files with 7 additions and 9 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue