mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 19:42:39 +02:00
modified the regression demos r
they all seem to work now.
This commit is contained in:
parent
1c51eae954
commit
312cfebcb1
1 changed files with 3 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ def rogers_girolami_olympics(max_nb_eval_optim=100):
|
||||||
# create simple GP model
|
# create simple GP model
|
||||||
m = GPy.models.GP_regression(data['X'],data['Y'])
|
m = GPy.models.GP_regression(data['X'],data['Y'])
|
||||||
|
|
||||||
|
#set the lengthscale to be something sensible (defaults to 1)
|
||||||
|
m['rbf_lengthscale'] = 10
|
||||||
|
|
||||||
# optimize
|
# optimize
|
||||||
m.ensure_default_constraints()
|
m.ensure_default_constraints()
|
||||||
m.optimize(max_f_eval=max_nb_eval_optim)
|
m.optimize(max_f_eval=max_nb_eval_optim)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue