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 gradientdoublevalueAt(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:
 valueAtin interfaceFunction- Overrides:
 valueAtin classNegLogLikelihood
 
- 
gradientAt
public double[] gradientAt(double[] x)
Compute gradient- Specified by:
 gradientAtin interfaceFunction- Overrides:
 gradientAtin classNegLogLikelihood
 
 - 
 
 -