Class NegLogLikelihood
- java.lang.Object
-
- opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
-
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
ParallelNegLogLikelihood
public class NegLogLikelihood extends 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 intgetDimension()double[]getInitialPoint()double[]gradientAt(double[] x)Compute gradientdoublevalueAt(double[] x)Negative log-likelihood
-
-
-
Constructor Detail
-
NegLogLikelihood
public NegLogLikelihood(DataIndexer indexer)
-
-
Method Detail
-
getDimension
public int getDimension()
- Specified by:
getDimensionin interfaceFunction
-
getInitialPoint
public double[] getInitialPoint()
-
valueAt
public double valueAt(double[] x)
Negative log-likelihood
-
gradientAt
public double[] gradientAt(double[] x)
Compute gradient- Specified by:
gradientAtin interfaceFunction
-
-