Class ParallelNegLogLikelihood
- Namespace
- NOpenNLP.Tools.Ml.Maxent.Quasinewton
- Assembly
- NOpenNLP.Tools.dll
Evaluate negative log-likelihood and its gradient in parallel
public class ParallelNegLogLikelihood : NegLogLikelihood, IFunction
- Inheritance
-
ParallelNegLogLikelihood
- Implements
- Inherited Members
Constructors
ParallelNegLogLikelihood(IDataIndexer, int)
public ParallelNegLogLikelihood(IDataIndexer indexer, int threads)
Parameters
indexerIDataIndexerthreadsint
Methods
GradientAt(double[])
Compute gradient
public override double[] GradientAt(double[] x)
Parameters
xdouble[]
Returns
- double[]
ValueAt(double[])
Negative log-likelihood
public override double ValueAt(double[] x)
Parameters
xdouble[]