Class

MLUpdateContext

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

Declaration

class MLUpdateContext : NSObject

Topics

Getting the Update Context

var event: MLUpdateProgressEvent

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

struct MLUpdateProgressEvent

A type of event during a model update task.

var task: MLUpdateTask

The update task that generated the update context.

var parameters: [MLParameterKey : Any]

The parameters for the update task.

class MLParameterKey

A key for model and update parameter dictionaries.

Evaluating the Update

var metrics: [MLMetricKey : Any]

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

class MLMetricKey

A key for the metrics dictionary in an update context.

Saving an Updated Model

var model: MLModel & MLWritable

The underlying Core ML model stored in memory.

protocol MLWritable

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

class MLModel

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

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.

Beta
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.

Beta
protocol MLBatchProvider

An interface that represents a collection of feature providers.

class MLModelConfiguration

The settings for creating or updating a machine learning model.

class MLUpdateProgressHandlers

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software