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