Home | Trees | Indices | Help |
---|
|
object --+ | Algorithm --+ | ConjugateGradient
Apply the conjugate gradient algorithm to a Criterion instance. Parameters ---------- criterion : Criterion A Criterion instance. It should have following methods and attributes: __call__ : returns criterion values at given point gradient : returns gradient (1st derivative) of criterion at given point n_variable: the size of the input vector of criterion x0 : ndarray (None) The first guess of the algorithm. callback : function (default_callback) Perform some printing / saving operations at each iteration. stop_condition : function (default_stop) Defines when the iterations should stop update_type : function (fletcher_reeves) Type of descent direction update : e.g. fletcher_reeves, polak_ribiere line_search : function (optimal step) Line search method to find the minimum along each direction at each iteration. Returns ------- Returns an algorithm instance. Optimization is performed by calling the this instance.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Initialize required values.
|
Update all values.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jun 2 17:46:15 2011 | http://epydoc.sourceforge.net |