mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-01 15:52:39 +02:00
Tutorial update due to some changes in GPy
This commit is contained in:
parent
37e7e11b5b
commit
fc86b8e1ac
4 changed files with 27 additions and 3 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 40 KiB |
|
|
@ -1,6 +1,14 @@
|
|||
inference Package
|
||||
=================
|
||||
|
||||
:mod:`SGD` Module
|
||||
-----------------
|
||||
|
||||
.. automodule:: GPy.inference.SGD
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
:mod:`optimization` Module
|
||||
--------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -113,6 +113,14 @@ kern Package
|
|||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
:mod:`product` Module
|
||||
---------------------
|
||||
|
||||
.. automodule:: GPy.kern.product
|
||||
:members:
|
||||
:undoc-members:
|
||||
:show-inheritance:
|
||||
|
||||
:mod:`product_orthogonal` Module
|
||||
--------------------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -13,17 +13,25 @@ First we import the libraries we will need ::
|
|||
For most kernels, the dimension is the only mandatory parameter to define a kernel object. However, it is also possible to specify the values of the parameters. For example, the three following commands are valid for defining a squared exponential kernel (ie rbf or Gaussian) ::
|
||||
|
||||
ker1 = GPy.kern.rbf(1) # Equivalent to ker1 = GPy.kern.rbf(D=1, variance=1., lengthscale=1.)
|
||||
ker2 = GPy.kern.rbf(D=1, variance = 1.5, lengthscale=2.)
|
||||
ker2 = GPy.kern.rbf(D=1, variance = .75, lengthscale=2.)
|
||||
ker3 = GPy.kern.rbf(1, .5, .5)
|
||||
|
||||
A `plot` and a `print` functions are implemented to represent kernel objects ::
|
||||
A ``print`` and a ``plot`` functions are implemented to represent kernel objects. The commands ::
|
||||
|
||||
print ker1
|
||||
print ker2
|
||||
|
||||
ker1.plot()
|
||||
ker2.plot()
|
||||
ker3.plot()
|
||||
|
||||
should return::
|
||||
|
||||
Name | Value | Constraints | Ties
|
||||
-------------------------------------------------------
|
||||
rbf_variance | 1.0000 | |
|
||||
rbf_lengthscale | 1.0000 | |
|
||||
|
||||
|
||||
.. figure:: Figures/tuto_kern_overview_basicdef.png
|
||||
:align: center
|
||||
:height: 350px
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue