Contents

meanAbsoluteError(reductionType:weights:)

Creates a mean absolute loss layer with the reduction type and weights you specify.

Declaration

class func meanAbsoluteError(reductionType: MLCReductionType, weights: MLCTensor?) -> Self

Parameters

  • reductionType:

    The reduction operation type.

  • weights:

    The loss label weights tensor.

Return Value

A mean absolute loss layer.

See Also

Creating Loss Layers with Tensor Weights