mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
various hackday stuff, including scale factor in sparse GP
This commit is contained in:
parent
194d3ebda7
commit
0fb8ab91bb
5 changed files with 32 additions and 32 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import GPy
|
|||
np.random.seed(2)
|
||||
pb.ion()
|
||||
N = 1200
|
||||
M = 20
|
||||
M = 5
|
||||
|
||||
######################################
|
||||
## 1 dimensional example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue