Contents

learningRate

The key you use to access the optimizer’s learning rate parameter.

Declaration

class var learningRate: MLParameterKey { get }

Discussion

The value type for the learningRate key is a Double.

To modify a model’s learning rate midway through an MLUpdateTask, use its resume(withParameters:) method to set a new value for the model’s learning rate. You do this in the progress handler that you specified in the MLUpdateProgressHandlers instance when you created the update task using init(forModelAt:trainingData:configuration:progressHandlers:).

See Personalizing a Model with On-Device Updates.

See Also

Accessing model update parameters