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 SummaryConstructors Constructor Description NegLogLikelihood(DataIndexer indexer)
 - 
Method SummaryAll 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- 
NegLogLikelihoodpublic NegLogLikelihood(DataIndexer indexer) 
 
- 
 - 
Method Detail- 
getDimensionpublic int getDimension() - Specified by:
- getDimensionin interface- Function
 
 - 
getInitialPointpublic double[] getInitialPoint() 
 - 
valueAtpublic double valueAt(double[] x) Negative log-likelihood
 - 
gradientAtpublic double[] gradientAt(double[] x) Compute gradient- Specified by:
- gradientAtin interface- Function
 
 
- 
 
-