Class ParallelNegLogLikelihood
java.lang.Object
opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
opennlp.tools.ml.maxent.quasinewton.ParallelNegLogLikelihood
- All Implemented Interfaces:
Function
Evaluate negative log-likelihood and its gradient in parallel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]gradientAt(double[] x) Compute gradientdoublevalueAt(double[] x) Negative log-likelihoodMethods inherited from class opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
getDimension, getInitialPoint
-
Constructor Details
-
ParallelNegLogLikelihood
-
-
Method Details
-
valueAt
public double valueAt(double[] x) Negative log-likelihood- Specified by:
valueAtin interfaceFunction- Overrides:
valueAtin classNegLogLikelihood
-
gradientAt
public double[] gradientAt(double[] x) Compute gradient- Specified by:
gradientAtin interfaceFunction- Overrides:
gradientAtin classNegLogLikelihood
-