Click or drag to resize

FFNetExternalLoss Delegate

External custom loss function.

Namespace:  FinMath.MachineLearning.NeuralNetworks
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
public delegate double ExternalLoss(
	int targetClassLabel,
	int targetClassIndex,
	double[] prediction,
	double[] gradient
)

Parameters

targetClassLabel
Type: SystemInt32
Target class label.
targetClassIndex
Type: SystemInt32
Target class index in list of classes (see Classes).
prediction
Type: SystemDouble
The network prediction values for this class label.
gradient
Type: SystemDouble
The gradient to be calculated.

Return Value

Type: Double
The total error value.
See Also