Contents

meanSquaredError(reductionType:weight:)

Creates a mean squared loss layer with the reduction type and weight you specify.

Declaration

class func meanSquaredError(reductionType: MLCReductionType, weight: Float) -> Self

Parameters

  • reductionType:

    The reduction operation type.

  • weight:

    A scalar floating-point weight value.

Return Value

A mean squared loss layer.

See Also

Creating Loss Layers with Scalar Weights