Uses of Interface opennlp.tools.ml.maxent.quasinewton.Function (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

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

- Packages that use Function
  Package | Description
  --- | ---
  opennlp.tools.ml.maxent.quasinewton |

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

    Classes in opennlp.tools.ml.maxent.quasinewton that implement Function
    Modifier and Type | Class and 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 and Description
    --- | ---
    `static void` | LineSearch.`doConstrainedLineSearch(Function function, double[] direction, LineSearch.LineSearchResult lsr, double l1Cost, double initialStepSize)` Constrained line search (see section 3.2 in the paper "Scalable Training of L1-Regularized Log-Linear Models", Andrew et al.
    `static void` | LineSearch.`doLineSearch(Function function, double[] direction, LineSearch.LineSearchResult lsr, double initialStepSize)` Backtracking line search (see Nocedal & Wright 2006, Numerical Optimization, p.
    `double[]` | QNMinimizer.`minimize(Function function)` Find the parameters that minimize the objective function

    Constructors in opennlp.tools.ml.maxent.quasinewton with parameters of type Function
    Constructor and Description
    `L2RegFunction(Function f, double l2Cost)`

Copyright © 2026 The Apache Software Foundation. All rights reserved.