Contents

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) -> Self

Parameters

  • 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