Skip to content

Instantly share code, notes, and snippets.

@beckdaniel
Created April 30, 2013 14:57
Show Gist options
  • Save beckdaniel/5489270 to your computer and use it in GitHub Desktop.
Save beckdaniel/5489270 to your computer and use it in GitHub Desktop.
import numpy as np
import GPy as gp
X = np.random.uniform(-3.,3.,(2000,17))
Y = np.sin(X) + np.random.randn(2000,17)*0.05
kernel = gp.kern.rbf(D=17, variance=1., lengthscale=1.)
m = gp.models.GP_regression(X,Y,kernel,normalize_X=True,normalize_Y=True)
m.constrain_positive('')
m.optimize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment