Klasse NegLogLikelihood
java.lang.Object
opennlp.tools.ml.maxent.quasinewton.NegLogLikelihood
- Alle implementierten Schnittstellen:
Function
- Bekannte direkte Unterklassen:
ParallelNegLogLikelihood
Evaluate negative log-likelihood and its gradient from
DataIndexer.-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintdouble[]double[]gradientAt(double[] x) Computes the gradient.doublevalueAt(double[] x) Computes the negative log-likelihood.
-
Konstruktordetails
-
NegLogLikelihood
- Parameter:
indexer- TheDataIndexerto use as input provider.
-
-
Methodendetails
-
getDimension
public int getDimension()- Angegeben von:
getDimensionin SchnittstelleFunction- Gibt zurück:
- Retrieves the dimension value.
-
getInitialPoint
public double[] getInitialPoint()- Gibt zurück:
- Retrieves the initial point as
doublearray.
-
valueAt
public double valueAt(double[] x) Computes the negative log-likelihood.- Angegeben von:
valueAtin SchnittstelleFunction- Parameter:
x- The input.- Gibt zurück:
- Returns the computed negative log-likelihood.
- Löst aus:
IllegalArgumentException- Thrown if parameters were invalid.
-
gradientAt
public double[] gradientAt(double[] x) Computes the gradient.- Angegeben von:
gradientAtin SchnittstelleFunction- Parameter:
x- The input.- Gibt zurück:
- Returns the computed gradient.
- Löst aus:
IllegalArgumentException- Thrown if parameters were invalid.
-