various hackday stuff, including scale factor in sparse GP

This commit is contained in:
James Hensman 2013-01-18 17:47:50 +00:00
parent 194d3ebda7
commit 0fb8ab91bb
5 changed files with 32 additions and 32 deletions

View file

@ -9,7 +9,7 @@ np.random.seed(1)
print "sparse GPLVM with RBF kernel"
N = 100
M = 4
M = 8
Q = 1
D = 2
#generate GPLVM-like data
@ -19,9 +19,7 @@ K = k.K(X)
Y = np.random.multivariate_normal(np.zeros(N),K,D).T
m = GPy.models.sparse_GPLVM(Y, Q, M=M)
m.constrain_positive('(rbf|bias|noise)')
m.constrain_bounded('white', 1e-3, 0.1)
# m.plot()
m.constrain_positive('(rbf|bias|noise|white)')
pb.figure()
m.plot()

View file

@ -12,7 +12,7 @@ import GPy
np.random.seed(2)
pb.ion()
N = 1200
M = 20
M = 5
######################################
## 1 dimensional example