klyn.math.nn.losses.LossResult.LossResult
constructor
public LossResult(value as Double, gradient as NDArray<T>)
Description

Retains a scalar loss and its gradient without copying the array.

Parameters
ParameterDescription
valueMean loss.
gradientDerivative with the same shape as the outputs.
Example

result = LossResult<Float>(loss, gradient)