mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-10 04:22:38 +02:00
Fixing examples
This commit is contained in:
parent
9480f71fe4
commit
9b535e6915
2 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ def tuto_kernel_overview(optimize=True, plot=True):
|
||||||
def model_interaction(optimize=True, plot=True):
|
def model_interaction(optimize=True, plot=True):
|
||||||
X = np.random.randn(20,1)
|
X = np.random.randn(20,1)
|
||||||
Y = np.sin(X) + np.random.randn(*X.shape)*0.01 + 5.
|
Y = np.sin(X) + np.random.randn(*X.shape)*0.01 + 5.
|
||||||
k = GPy.kern.rbf(1) + GPy.kern.bias(1)
|
k = GPy.kern.RBF(1) + GPy.kern.Bias(1)
|
||||||
m = GPy.models.GPRegression(X, Y, kernel=k)
|
m = GPy.models.GPRegression(X, Y, kernel=k)
|
||||||
return m
|
return m
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ def flatten_nested(lst):
|
||||||
result.append(element)
|
result.append(element)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@nottest
|
#@nottest
|
||||||
def test_models():
|
def test_models():
|
||||||
optimize=False
|
optimize=False
|
||||||
plot=True
|
plot=True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue