Class LineSearch
java.lang.Object
opennlp.tools.ml.maxent.quasinewton.LineSearch
Class that performs line search to find minimum.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a LineSearch result. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doConstrainedLineSearch
(Function function, double[] direction, LineSearch.LineSearchResult lsr, double l1Cost, double initialStepSize) Conducts a constrained line search (see section 3.2 in the paper "Scalable Training of L1-Regularized Log-Linear Models", Andrew et al. 2007)static void
doLineSearch
(Function function, double[] direction, LineSearch.LineSearchResult lsr, double initialStepSize) Conducts a backtracking line search (see Nocedal & Wright 2006, Numerical Optimization, p. 37).
-
Constructor Details
-
LineSearch
public LineSearch()
-
-
Method Details
-
doLineSearch
public static void doLineSearch(Function function, double[] direction, LineSearch.LineSearchResult lsr, double initialStepSize) Conducts a backtracking line search (see Nocedal & Wright 2006, Numerical Optimization, p. 37). -
doConstrainedLineSearch
public static void doConstrainedLineSearch(Function function, double[] direction, LineSearch.LineSearchResult lsr, double l1Cost, double initialStepSize) Conducts a constrained line search (see section 3.2 in the paper "Scalable Training of L1-Regularized Log-Linear Models", Andrew et al. 2007)
-