Contents

log(reductionType:epsilon:weight:)

Creates a log loss layer with the reduction type, epsilon, and weight you specify.

Declaration

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

Parameters

  • reductionType:

    The reduction operation type.

  • epsilon:

    The epsilon value.

  • weight:

    A scalar floating-point weight value.

Return Value

A log loss layer.

See Also

Creating Loss Layers with Scalar Weights