Class

MLUpdateContext

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

Declaration

@interface MLUpdateContext : NSObject

Topics

Getting the Update Context

event

The event type that triggered an update task to notify your app’s completion and update progress handlers.

MLUpdateProgressEvent

A type of event during a model update task.

task

The update task that generated the update context.

parameters

The parameters for the update task.

MLParameterKey

A key for model and update parameter dictionaries.

Evaluating the Update

metrics

The training metrics of the model for the update task, contained in a dictionary.

MLMetricKey

A key for the metrics dictionary in an update context.

Saving an Updated Model

model

The underlying Core ML model stored in memory.

MLWritable

A set of methods that saves a machine learning type to the file system.

MLModel

An encapsulation of all the details of your machine learning model.

Relationships

Inherits From

See Also

Creating an Update Task

+ updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:

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

+ updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:

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

MLBatchProvider

An interface that represents a collection of feature providers.

MLModelConfiguration

The settings for creating or updating a machine learning model.

MLUpdateProgressHandlers

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