mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-30 15:26:23 +02:00
I think the gradients bug in the sparse GP model is due to Kmm being unstable to invert. REducing M in some of the examples really helps
This commit is contained in:
parent
d71ad99db9
commit
1c60e50fed
3 changed files with 6 additions and 4 deletions
|
|
@ -12,6 +12,7 @@ import GPy
|
|||
np.random.seed(2)
|
||||
pb.ion()
|
||||
N = 500
|
||||
M = 5
|
||||
|
||||
######################################
|
||||
## 1 dimensional example
|
||||
|
|
@ -26,7 +27,7 @@ noise = GPy.kern.white(1)
|
|||
kernel = rbf + noise
|
||||
|
||||
# create simple GP model
|
||||
m1 = GPy.models.sparse_GP_regression(X,Y,kernel, M = 10)
|
||||
m1 = GPy.models.sparse_GP_regression(X, Y, kernel, M=M)
|
||||
|
||||
# contrain all parameters to be positive
|
||||
m1.constrain_positive('(variance|lengthscale|precision)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue