Class

MLUpdateProgressHandlers

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

Declaration

class MLUpdateProgressHandlers : NSObject

Topics

Creating Progress Handlers

init(forEvents: MLUpdateProgressEvent, progressHandler: ((MLUpdateContext) -> Void)?, completionHandler: (MLUpdateContext) -> Void)

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

struct MLUpdateProgressEvent

A type of event during a model update task.

class MLUpdateContext

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

Relationships

Inherits From

Conforms To

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.

init(forModelAt: URL, trainingData: MLBatchProvider, configuration: MLModelConfiguration?, progressHandlers: MLUpdateProgressHandlers)

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

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.