mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-05 14:55:15 +02:00
Merge branch 'master' of github.com:SheffieldML/GPy
This commit is contained in:
commit
0765ceb920
3 changed files with 64 additions and 6 deletions
|
|
@ -120,7 +120,7 @@ def sparse_toy_linear_1d_classification(seed=default_seed):
|
|||
Y[Y == -1] = 0
|
||||
|
||||
# Kernel object
|
||||
kernel = GPy.kern.rbf(1)
|
||||
kernel = GPy.kern.rbf(1) + GPy.kern.white(1)
|
||||
|
||||
# Likelihood object
|
||||
distribution = GPy.likelihoods.likelihood_functions.probit()
|
||||
|
|
@ -129,8 +129,8 @@ def sparse_toy_linear_1d_classification(seed=default_seed):
|
|||
Z = np.random.uniform(data['X'].min(),data['X'].max(),(10,1))
|
||||
|
||||
# Model definition
|
||||
m = GPy.models.sparse_GP(data['X'],likelihood=likelihood,kernel=kernel,Z=Z,normalize_X=True)
|
||||
m.set('len',.5)
|
||||
m = GPy.models.sparse_GP(data['X'],likelihood=likelihood,kernel=kernel,Z=Z,normalize_X=False)
|
||||
m.set('len',2.)
|
||||
|
||||
m.ensure_default_constraints()
|
||||
# Optimize
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ def GPLVM_oil_100():
|
|||
# create simple GP model
|
||||
m = GPy.models.GPLVM(data['X'], 2)
|
||||
|
||||
|
||||
# optimize
|
||||
m.ensure_default_constraints()
|
||||
m.optimize()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue