|
ForwardBackwardGradientTObjective Method (Double, T, Int32)
|
Computes the objective (cost) function for the Hidden
Conditional Random Field (negative log-likelihood).
Namespace:
Accord.Statistics.Models.Fields.Learning
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public double Objective(
double[] parameters,
T[][] inputs,
int[] outputs
)
Public Function Objective (
parameters As Double(),
inputs As T()(),
outputs As Integer()
) As Double
Request Example
View SourceParameters
- parameters
- Type: SystemDouble
The parameter vector lambda to use in the model. - inputs
- Type: T
The inputs to compute the cost function. - outputs
- Type: SystemInt32
The respective outputs to compute the cost function.
Return Value
Type:
DoubleThe value of the objective function for the given parameters.
See Also