Mercurial > pylearn
changeset 1188:073c2fab7bcd
fix rst syntax.
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Fri, 17 Sep 2010 20:24:30 -0400 |
parents | 7d34edde029d |
children | 0e12ea6ba661 |
files | doc/v2_planning/API_optimization.txt |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/v2_planning/API_optimization.txt Fri Sep 17 17:53:35 2010 -0400 +++ b/doc/v2_planning/API_optimization.txt Fri Sep 17 20:24:30 2010 -0400 @@ -33,6 +33,8 @@ optimization algorithms should be global functions with a signature like 'iterative_optimizer'. +.. code-block:: python + def iterative_optimizer(parameters, cost=None, gradients=None, @@ -84,6 +86,8 @@ scipy's. Its arguments are numpy arrays, and functions that manipulate numpy arrays. +.. code-block:: python + def minimize(x0, f, df, opt_algo, **kwargs): """ Return a point x_new with the same type as x0 that minimizes function `f` @@ -114,6 +118,8 @@ control. Technically minimize() is probably implemented using this minimize_iterator interface. +.. code-block:: python + class minimize_iterator(object): """ Attributes