meanAbsoluteError(reductionType:weight:)
Creates a mean absolute loss layer with the reduction type and weight.
Declaration
class func meanAbsoluteError(reductionType: MLCReductionType, weight: Float) -> SelfParameters
- reductionType:
The reduction operation type.
- weight:
A scalar floating-point weight value.
Return Value
A mean absolute 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:)huberLoss(reductionType:delta:weight:)meanSquaredError(reductionType:weight:)hingeLoss(reductionType:weight:)cosineDistance(reductionType:weight:)