mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
Merge pull request #800 from sighellan/devel
Minor fix to multioutput regression example, to clarify code + typo.
This commit is contained in:
commit
4ac66e2336
1 changed files with 4 additions and 2 deletions
|
|
@ -620,8 +620,10 @@ def multioutput_gp_with_derivative_observations():
|
||||||
|
|
||||||
# Then create the model, we give everything in lists, the order of the inputs indicates the order of the outputs
|
# Then create the model, we give everything in lists, the order of the inputs indicates the order of the outputs
|
||||||
# Now we have the regular observations first and derivative observations second, meaning that the kernels and
|
# Now we have the regular observations first and derivative observations second, meaning that the kernels and
|
||||||
# the likelihoods must follow the same order. Crosscovariances are automatically taken car of
|
# the likelihoods must follow the same order. Crosscovariances are automatically taken care of
|
||||||
m = GPy.models.MultioutputGP(X_list=[x, xd], Y_list=[y, yd], kernel_list=[se, se_der], likelihood_list = [gauss, gauss])
|
m = GPy.models.MultioutputGP(X_list=[x, xd], Y_list=[y, yd],
|
||||||
|
kernel_list=[se, se_der],
|
||||||
|
likelihood_list=[gauss, gauss_der])
|
||||||
|
|
||||||
# Optimize the model
|
# Optimize the model
|
||||||
m.optimize(messages=0, ipython_notebook=False)
|
m.optimize(messages=0, ipython_notebook=False)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue