opennlp.maxent.quasinewton
Class LogLikelihoodFunction
java.lang.Object
opennlp.maxent.quasinewton.LogLikelihoodFunction
- All Implemented Interfaces:
- DifferentiableFunction, Function
public class LogLikelihoodFunction
- extends Object
- implements DifferentiableFunction
Evaluate log likelihood and its gradient from DataIndexer.
LogLikelihoodFunction
public LogLikelihoodFunction(DataIndexer indexer)
valueAt
public double valueAt(double[] x)
- Specified by:
valueAt
in interface Function
gradientAt
public double[] gradientAt(double[] x)
- Specified by:
gradientAt
in interface DifferentiableFunction
getDomainDimension
public int getDomainDimension()
- Specified by:
getDomainDimension
in interface Function
getInitialPoint
public double[] getInitialPoint()
getPredLabels
public String[] getPredLabels()
getOutcomeLabels
public String[] getOutcomeLabels()
getOutcomePatterns
public int[][] getOutcomePatterns()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.