annotate toolboxes/FullBNT-1.0.7/nethelp3.3/gp.htm @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 <html>
Daniel@0 2 <head>
Daniel@0 3 <title>
Daniel@0 4 Netlab Reference Manual gp
Daniel@0 5 </title>
Daniel@0 6 </head>
Daniel@0 7 <body>
Daniel@0 8 <H1> gp
Daniel@0 9 </H1>
Daniel@0 10 <h2>
Daniel@0 11 Purpose
Daniel@0 12 </h2>
Daniel@0 13 Create a Gaussian Process.
Daniel@0 14
Daniel@0 15 <p><h2>
Daniel@0 16 Synopsis
Daniel@0 17 </h2>
Daniel@0 18 <PRE>
Daniel@0 19 net = gp(nin, covarfn)
Daniel@0 20 net = gp(nin, covarfn, prior)
Daniel@0 21 </PRE>
Daniel@0 22
Daniel@0 23
Daniel@0 24 <p><h2>
Daniel@0 25 Description
Daniel@0 26 </h2>
Daniel@0 27
Daniel@0 28 <p><CODE>net = gp(nin, covarfn)</CODE> takes the number of inputs <CODE>nin</CODE>
Daniel@0 29 for a Gaussian Process model with a single output, together
Daniel@0 30 with a string <CODE>covarfn</CODE> which specifies the type of the covariance function,
Daniel@0 31 and returns a data structure <CODE>net</CODE>. The parameters are set to zero.
Daniel@0 32
Daniel@0 33 <p>The fields in <CODE>net</CODE> are
Daniel@0 34 <PRE>
Daniel@0 35 type = 'gp'
Daniel@0 36 nin = number of inputs
Daniel@0 37 nout = number of outputs: always 1
Daniel@0 38 nwts = total number of weights and covariance function parameters
Daniel@0 39 bias = logarithm of constant offset in covariance function
Daniel@0 40 noise = logarithm of output noise variance
Daniel@0 41 inweights = logarithm of inverse length scale for each input
Daniel@0 42 covarfn = string describing the covariance function:
Daniel@0 43 'sqexp'
Daniel@0 44 'ratquad'
Daniel@0 45 fpar = covariance function specific parameters (1 for squared exponential,
Daniel@0 46 2 for rational quadratic)
Daniel@0 47 trin = training input data (initially empty)
Daniel@0 48 trtargets = training target data (initially empty)
Daniel@0 49 </PRE>
Daniel@0 50
Daniel@0 51
Daniel@0 52 <p><CODE>net = gp(nin, covarfn, prior)</CODE> sets a Gaussian prior on the
Daniel@0 53 parameters of the model. <CODE>prior</CODE> must contain the fields
Daniel@0 54 <CODE>pr_mean</CODE> and <CODE>pr_variance</CODE>. If <CODE>pr_mean</CODE> is a scalar,
Daniel@0 55 then the Gaussian is assumed to be isotropic and the additional fields
Daniel@0 56 <CODE>net.pr_mean</CODE> and <CODE>pr_variance</CODE> are set. Otherwise,
Daniel@0 57 the Gaussian prior has a mean
Daniel@0 58 defined by a column vector of parameters <CODE>prior.pr_mean</CODE> and
Daniel@0 59 covariance defined by a column vector of parameters <CODE>prior.pr_variance</CODE>.
Daniel@0 60 Each element of <CODE>prmean</CODE> corresponds to a separate group of parameters, which
Daniel@0 61 need not be mutually exclusive. The membership of the groups is defined
Daniel@0 62 by the matrix <CODE>prior.index</CODE> in which the columns correspond to the elements of
Daniel@0 63 <CODE>prmean</CODE>. Each column has one element for each weight in the matrix,
Daniel@0 64 in the order defined by the function <CODE>gppak</CODE>, and each element
Daniel@0 65 is 1 or 0 according to whether the parameter is a member of the
Daniel@0 66 corresponding group or not. The additional field <CODE>net.index</CODE> is set
Daniel@0 67 in this case.
Daniel@0 68
Daniel@0 69 <p><h2>
Daniel@0 70 See Also
Daniel@0 71 </h2>
Daniel@0 72 <CODE><a href="gppak.htm">gppak</a></CODE>, <CODE><a href="gpunpak.htm">gpunpak</a></CODE>, <CODE><a href="gpfwd.htm">gpfwd</a></CODE>, <CODE><a href="gperr.htm">gperr</a></CODE>, <CODE><a href="gpcovar.htm">gpcovar</a></CODE>, <CODE><a href="gpgrad.htm">gpgrad</a></CODE><hr>
Daniel@0 73 <b>Pages:</b>
Daniel@0 74 <a href="index.htm">Index</a>
Daniel@0 75 <hr>
Daniel@0 76 <p>Copyright (c) Ian T Nabney (1996-9)
Daniel@0 77
Daniel@0 78
Daniel@0 79 </body>
Daniel@0 80 </html>