Initializer

init(forModelAt:trainingData:configuration:progressHandlers:)

Creates an update task for your model, given its file URL, training data, and your progress handlers.

Declaration

convenience init(forModelAt modelURL: URL, trainingData: MLBatchProvider, configuration: MLModelConfiguration?, progressHandlers: MLUpdateProgressHandlers) 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 a updated model object.

progressHandlers

The closures the task calls during the update process.

See Also

Creating an Update Task

init(forModelAt: URL, trainingData: MLBatchProvider, configuration: MLModelConfiguration?, completionHandler: (MLUpdateContext) -> Void)

Creates an update task for your model, given its file URL, training data, and your completion handler.

protocol MLBatchProvider

An interface that represents a collection of feature providers.

class MLModelConfiguration

The settings for creating or updating a machine learning model.

class MLUpdateContext

The context an update task provides to your app’s completion and update progress handlers.

class MLUpdateProgressHandlers

A collection of closures an update task uses to notify your app of its progress.