a small demo for model tutorial

This commit is contained in:
James Hensman 2013-03-11 14:04:07 +00:00
parent 84119a19b3
commit f23e3bbf7c
4 changed files with 22 additions and 13 deletions

View file

@ -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)

View file

@ -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:

View file

@ -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

View file

@ -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.