|
SmoothHingeLossDerivative Method (Boolean, Double)
|
Computes the derivative of the loss between the expected values (ground truth)
and the given actual values that have been predicted.
Namespace:
Accord.Math.Optimization.Losses
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public double Derivative(
bool expected,
double actual
)
Public Function Derivative (
expected As Boolean,
actual As Double
) As Double
Request Example
View SourceParameters
- expected
- Type: SystemBoolean
The expected values that should have been predicted. - actual
- Type: SystemDouble
The actual values that have been predicted.
Return Value
Type:
DoubleThe loss value between the expected values and
the actual predicted values.
Implements
IDifferentiableLossTInput, TScore, TLossDerivative(TInput, TScore)See Also