Home | Trees | Indices | Help |
---|
|
object --+ | bases.BaseAlgorithm --+ | bases.ExplicitAlgorithm --+ | BacktrackingLineSearch
Finds a step length a that fulfills a given descent criterion.
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
|||
INTERFACES =
|
|||
__abstractmethods__ =
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Parameters ---------- condition : The class of the descent condition. If not given, defaults to the SufficientDescentCondition. output : Boolean. Whether or not to return additional output. max_iter : Non-negative integer. The maximum allowed number of iterations. min_iter : Non-negative integer, min_iter <= max_iter. The minimum number of iterations that must be made.
|
Finds the step length for a descent algorithm. Parameters ---------- function : A Loss function. The function to minimise. x : Numpy array. The current point. p : Numpy array. The descent direction. rho : Float, 0 < rho < 1. The rate at which to decrease a in each iteration. Smaller will finish faster, but may yield a lesser descent. a : Float. The upper bound on the step length. Defaults to 1.0, which is suitable for e.g. Newton's method. condition_params : Dictionary. Parameters for the descent condition.
|
|
INTERFACES
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Apr 6 23:52:10 2015 | http://epydoc.sourceforge.net |