Contents

init(forModelAt:trainingData:configuration:completionHandler:)

Creates a task that updates the model at the URL with the training data and configuration, and calls the completion handler when the update completes.

Declaration

convenience init(forModelAt modelURL: URL, trainingData: any MLBatchProvider, configuration: MLModelConfiguration?, completionHandler: @escaping (MLUpdateContext) -> Void) throws

Parameters

  • modelURL:

    The location in the file system of a model file (ModelName.mlmodelc).

  • trainingData:

    The update data for the model, contained in a batch provider.

  • configuration:

    The model settings for an updated model object.

  • completionHandler:

    The closure the task calls when it finishes.

See Also

Creating an update task