init(forModelAt:trainingData:progressHandlers:)
Creates a task that updates the model at the URL with the training data, and calls the progress handlers during and after the update.
Declaration
convenience init(forModelAt modelURL: URL, trainingData: any MLBatchProvider, progressHandlers: MLUpdateProgressHandlers) throwsParameters
- 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.
- progressHandlers:
The closures the task calls during the update process.
See Also
Creating an update task
init(forModelAt:trainingData:completionHandler:)init(forModelAt:trainingData:configuration:completionHandler:)init(forModelAt:trainingData:configuration:progressHandlers:)init(forModelAtURL:trainingData:completionHandler:)init(forModelAtURL:trainingData:progressHandlers:)init(forModelAtURL:trainingData:configuration:completionHandler:)init(forModelAtURL:trainingData:configuration:progressHandlers:)MLBatchProviderMLModelConfigurationMLUpdateContextMLUpdateProgressHandlers