huberLoss(reductionType:delta:weight:)
Creates a huber loss layer with the reduction type, delta, and weight you specify.
Declaration
class func huberLoss(reductionType: MLCReductionType, delta: Float, weight: Float) -> SelfParameters
- reductionType:
The reduction operation type.
- delta:
The delta value.
- weight:
A scalar floating-point weight value.
Return Value
A huber loss layer.
See Also
Creating Loss Layers with Scalar Weights
softmaxCrossEntropy(reductionType:labelSmoothing:classCount:weight:)categoricalCrossEntropy(reductionType:labelSmoothing:classCount:weight:)sigmoidCrossEntropy(reductionType:labelSmoothing:weight:)log(reductionType:epsilon:weight:)meanAbsoluteError(reductionType:weight:)meanSquaredError(reductionType:weight:)hingeLoss(reductionType:weight:)cosineDistance(reductionType:weight:)