Class NegLogLikelihood
java.lang.Object
opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
- All Implemented Interfaces:
Function
- Direct Known Subclasses:
ParallelNegLogLikelihood
Evaluate negative log-likelihood and its gradient from DataIndexer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdouble[]double[]gradientAt(double[] x) Compute gradientdoublevalueAt(double[] x) Negative log-likelihood
-
Constructor Details
-
NegLogLikelihood
-
-
Method Details
-
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
-