Class NegLogLikelihood
- java.lang.Object
-
- opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
ParallelNegLogLikelihood
public class NegLogLikelihood extends java.lang.Object implements Function
Evaluate negative log-likelihood and its gradient from DataIndexer.
-
-
Constructor Summary
Constructors Constructor Description NegLogLikelihood(DataIndexer indexer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDimension()
double[]
getInitialPoint()
double[]
gradientAt(double[] x)
Compute gradientdouble
valueAt(double[] x)
Negative log-likelihood
-
-
-
Constructor Detail
-
NegLogLikelihood
public NegLogLikelihood(DataIndexer indexer)
-
-
Method Detail
-
getDimension
public int getDimension()
- Specified by:
getDimension
in interfaceFunction
-
getInitialPoint
public double[] getInitialPoint()
-
valueAt
public double valueAt(double[] x)
Negative log-likelihood
-
gradientAt
public double[] gradientAt(double[] x)
Compute gradient- Specified by:
gradientAt
in interfaceFunction
-
-