Information about a model that’s stored in a Core ML model file.


struct MLModelMetadata


Create a metadata instance and store it as part of your model when you export a Core ML model. You can examine this metadata in Xcode when you import the model into your app.


Creating Metadata

Accessing Metadata

var author: String

The author of the model.

var shortDescription: String

A short text description of the model.

var license: String?

The license governing the use of the model.

var version: String

The model version.

var additional: [String : String]?

A dictionary that encodes key value pairs to hold additional information about the model.

See Also

Supporting Types

enum MLSplitStrategy

Data partitioning approaches, typically for creating a validation dataset from a training dataset.

enum MLCreateError

The errors Create ML throws while performing various operations, such as training models, making predictions, writing models to a file system, and so on.