# Uses of Interface
opennlp.tools.ml.maxent.quasinewton.Function

Packages that use Function
Package
Description
opennlp.tools.ml.maxent.quasinewton
Package related to ML by means of the Quasi Newton (QN) algorithm.

- ## Uses of Function in opennlp.tools.ml.maxent.quasinewton

  Classes in opennlp.tools.ml.maxent.quasinewton that implement Function
  Modifier and Type
  Class
  Description
  `class`
  `NegLogLikelihood`
  Evaluate negative log-likelihood and its gradient from `DataIndexer`.
  `class`
  `ParallelNegLogLikelihood`
  Evaluate negative log-likelihood and its gradient in parallel
  `static class`
  `QNMinimizer.L2RegFunction`
  L2-regularized objective `Function`.
  Methods in opennlp.tools.ml.maxent.quasinewton with parameters of type Function
  Modifier and Type
  Method
  Description
  `static void`
  LineSearch.`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`
  LineSearch.`doLineSearch(Function function, double[] direction, LineSearch.LineSearchResult lsr, double initialStepSize)`
  Conducts a backtracking line search (see Nocedal & Wright 2006, Numerical Optimization, p. 37).
  `double[]`
  QNMinimizer.`minimize(Function function)`
  Finds the parameters that minimize the objective function.
  Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type Function
  Modifier
  Constructor
  Description
  ``
  `L2RegFunction(Function f, double l2Cost)`