Contents

init(learningRate:gradientRescale:regularizationType:regularizationScale:)

Creates an optimizer descriptor with the learning rate, gradient rescale, regularization type, and regulation scale that you specify.

Declaration

convenience init(learningRate: Float, gradientRescale: Float, regularizationType: MLCRegularizationType, regularizationScale: Float)

Parameters

  • learningRate:

    The learning rate.

  • gradientRescale:

    The gradient rescale value.

  • regularizationType:

    The regularization type.

  • regularizationScale:

    The regularization scale.

See Also

Creating an Optimizer Descriptor