mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 10:32:39 +02:00
Started fixing docs
This commit is contained in:
parent
27dff257eb
commit
c36a6b341c
4 changed files with 17 additions and 14 deletions
|
|
@ -11,18 +11,20 @@ from sparse_gp import SparseGP
|
||||||
|
|
||||||
class FITC(SparseGP):
|
class FITC(SparseGP):
|
||||||
"""
|
"""
|
||||||
sparse FITC approximation
|
|
||||||
|
Sparse FITC approximation
|
||||||
|
|
||||||
:param X: inputs
|
:param X: inputs
|
||||||
:type X: np.ndarray (num_data x Q)
|
:type X: np.ndarray (num_data x Q)
|
||||||
:param likelihood: a likelihood instance, containing the observed data
|
:param likelihood: a likelihood instance, containing the observed data
|
||||||
:type likelihood: GPy.likelihood.(Gaussian | EP)
|
:type likelihood: GPy.likelihood.(Gaussian | EP)
|
||||||
:param kernel : the kernel (covariance function). See link kernels
|
:param kernel: the kernel (covariance function). See link kernels
|
||||||
:type kernel: a GPy.kern.kern instance
|
:type kernel: a GPy.kern.kern instance
|
||||||
:param Z: inducing inputs (optional, see note)
|
:param Z: inducing inputs (optional, see note)
|
||||||
:type Z: np.ndarray (M x Q) | None
|
:type Z: np.ndarray (M x Q) | None
|
||||||
:param normalize_(X|Y) : whether to normalize the data before computing (predictions will be in original scales)
|
:param normalize_(X|Y): whether to normalize the data before computing (predictions will be in original scales)
|
||||||
:type normalize_(X|Y): bool
|
:type normalize_(X|Y): bool
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, X, likelihood, kernel, Z, normalize_X=False):
|
def __init__(self, X, likelihood, kernel, Z, normalize_X=False):
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ class Mapping(Parameterized):
|
||||||
|
|
||||||
def plot(self, plot_limits=None, which_data='all', which_parts='all', resolution=None, levels=20, samples=0, fignum=None, ax=None, fixed_inputs=[], linecol=Tango.colorsHex['darkBlue']):
|
def plot(self, plot_limits=None, which_data='all', which_parts='all', resolution=None, levels=20, samples=0, fignum=None, ax=None, fixed_inputs=[], linecol=Tango.colorsHex['darkBlue']):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Plot the mapping.
|
Plot the mapping.
|
||||||
|
|
||||||
Plots the mapping associated with the model.
|
Plots the mapping associated with the model.
|
||||||
|
|
@ -79,8 +80,7 @@ class Mapping(Parameterized):
|
||||||
:type fixed_inputs: a list of tuples
|
:type fixed_inputs: a list of tuples
|
||||||
:param linecol: color of line to plot.
|
:param linecol: color of line to plot.
|
||||||
:type linecol:
|
:type linecol:
|
||||||
:param levels: for 2D plotting, the number of contour levels to use
|
:param levels: for 2D plotting, the number of contour levels to use is ax is None, create a new figure
|
||||||
is ax is None, create a new figure
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
# TODO include samples
|
# TODO include samples
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,11 @@ class Model(Parameterized):
|
||||||
|
|
||||||
def set_prior(self, regexp, what):
|
def set_prior(self, regexp, what):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Sets priors on the model parameters.
|
Sets priors on the model parameters.
|
||||||
|
|
||||||
Notes
|
**Notes**
|
||||||
-----
|
|
||||||
Asserts that the prior is suitable for the constraint. If the
|
Asserts that the prior is suitable for the constraint. If the
|
||||||
wrong constraint is in place, an error is raised. If no
|
wrong constraint is in place, an error is raised. If no
|
||||||
constraint is in place, one is added (warning printed).
|
constraint is in place, one is added (warning printed).
|
||||||
|
|
@ -185,8 +186,8 @@ class Model(Parameterized):
|
||||||
be handled silently. If _all_ runs fail, the model is reset to the
|
be handled silently. If _all_ runs fail, the model is reset to the
|
||||||
existing parameter values.
|
existing parameter values.
|
||||||
|
|
||||||
Notes
|
**Notes**
|
||||||
-----
|
|
||||||
:param num_restarts: number of restarts to use (default 10)
|
:param num_restarts: number of restarts to use (default 10)
|
||||||
:type num_restarts: int
|
:type num_restarts: int
|
||||||
:param robust: whether to handle exceptions silently or not (default False)
|
:param robust: whether to handle exceptions silently or not (default False)
|
||||||
|
|
@ -195,7 +196,9 @@ class Model(Parameterized):
|
||||||
:type parallel: bool
|
:type parallel: bool
|
||||||
:param num_processes: number of workers in the multiprocessing pool
|
:param num_processes: number of workers in the multiprocessing pool
|
||||||
:type numprocesses: int
|
:type numprocesses: int
|
||||||
**kwargs are passed to the optimizer. They can be:
|
|
||||||
|
\*\*kwargs are passed to the optimizer. They can be:
|
||||||
|
|
||||||
:param max_f_eval: maximum number of function evaluations
|
:param max_f_eval: maximum number of function evaluations
|
||||||
:type max_f_eval: int
|
:type max_f_eval: int
|
||||||
:param max_iters: maximum number of iterations
|
:param max_iters: maximum number of iterations
|
||||||
|
|
@ -203,9 +206,7 @@ class Model(Parameterized):
|
||||||
:param messages: whether to display during optimisation
|
:param messages: whether to display during optimisation
|
||||||
:type messages: bool
|
:type messages: bool
|
||||||
|
|
||||||
..Note: If num_processes is None, the number of workes in the multiprocessing pool is automatically
|
.. note:: If num_processes is None, the number of workes in the multiprocessing pool is automatically set to the number of processors on the current machine.
|
||||||
set to the number of processors on the current machine.
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
initial_parameters = self._get_params_transformed()
|
initial_parameters = self._get_params_transformed()
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
# You can set these variables from the command line.
|
# You can set these variables from the command line.
|
||||||
SPHINXOPTS =
|
SPHINXOPTS = -a -w log.txt -E
|
||||||
SPHINXBUILD = sphinx-build
|
SPHINXBUILD = sphinx-build
|
||||||
PAPER =
|
PAPER =
|
||||||
BUILDDIR = _build
|
BUILDDIR = _build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue