mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-02 14:45:15 +02:00
a small demo for model tutorial
This commit is contained in:
parent
84119a19b3
commit
f23e3bbf7c
4 changed files with 22 additions and 13 deletions
|
|
@ -90,7 +90,7 @@ def tuto_kernel_overview():
|
||||||
|
|
||||||
# Sum of kernels
|
# Sum of kernels
|
||||||
k_add = k1.add(k2)
|
k_add = k1.add(k2)
|
||||||
k_addorth = k1.add_orthogonal(k2)
|
k_addorth = k1.add_orthogonal(k2)
|
||||||
|
|
||||||
pb.figure(figsize=(8,8))
|
pb.figure(figsize=(8,8))
|
||||||
pb.subplot(2,2,1)
|
pb.subplot(2,2,1)
|
||||||
|
|
@ -199,3 +199,10 @@ def tuto_kernel_overview():
|
||||||
WN[100] = 1.
|
WN[100] = 1.
|
||||||
pb.subplot(3,4,i+1)
|
pb.subplot(3,4,i+1)
|
||||||
pb.plot(X,WN,'b')
|
pb.plot(X,WN,'b')
|
||||||
|
|
||||||
|
def model_interaction():
|
||||||
|
X = np.random.randn(20,1)
|
||||||
|
Y = np.sin(X) + np.random.randn(*X.shape)*0.01 + 5.
|
||||||
|
k = GPy.kern.rbf(1) + GPy.kern.bias(1)
|
||||||
|
return GPy.models.GP_regression(X,Y,kernel=k)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -73,18 +73,10 @@ examples Package
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
||||||
:mod:`tuto_GP_regression` Module
|
:mod:`tutorials` Module
|
||||||
--------------------------------
|
-----------------------
|
||||||
|
|
||||||
.. automodule:: GPy.examples.tuto_GP_regression
|
.. automodule:: GPy.examples.tutorials
|
||||||
:members:
|
|
||||||
:undoc-members:
|
|
||||||
:show-inheritance:
|
|
||||||
|
|
||||||
:mod:`tuto_kernel_overview` Module
|
|
||||||
----------------------------------
|
|
||||||
|
|
||||||
.. automodule:: GPy.examples.tuto_kernel_overview
|
|
||||||
:members:
|
:members:
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,14 @@ GPy Package
|
||||||
:undoc-members:
|
:undoc-members:
|
||||||
:show-inheritance:
|
:show-inheritance:
|
||||||
|
|
||||||
|
:mod:`test_coreg` Module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: GPy.test_coreg
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
Subpackages
|
Subpackages
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
|
|
@ -20,5 +28,6 @@ Subpackages
|
||||||
GPy.kern
|
GPy.kern
|
||||||
GPy.likelihoods
|
GPy.likelihoods
|
||||||
GPy.models
|
GPy.models
|
||||||
|
GPy.testing
|
||||||
GPy.util
|
GPy.util
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,10 @@ Welcome to GPy's documentation!
|
||||||
For a quick start, you can have a look at one of the tutorials:
|
For a quick start, you can have a look at one of the tutorials:
|
||||||
|
|
||||||
* `Basic Gaussian process regression <tuto_GP_regression.html>`_
|
* `Basic Gaussian process regression <tuto_GP_regression.html>`_
|
||||||
|
* `Interacting with models <tuto_interacting_with_models.html>`_
|
||||||
* `A kernel overview <tuto_kernel_overview.html>`_
|
* `A kernel overview <tuto_kernel_overview.html>`_
|
||||||
* Advanced GP regression (Forthcoming)
|
* Advanced GP regression (Forthcoming)
|
||||||
* Writting kernels (Forthcoming)
|
* Writing kernels (Forthcoming)
|
||||||
|
|
||||||
You may also be interested by some examples in the GPy/examples folder.
|
You may also be interested by some examples in the GPy/examples folder.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue