Keys for the metadata dictionary used by the model.


struct MLModelMetadataKey


Metadata Keys

static let author: MLModelMetadataKey

Key for the author of the model.

static let description: MLModelMetadataKey

Key for the overall description of the model.

static let license: MLModelMetadataKey

Key for the license of the model.

static let versionString: MLModelMetadataKey

Key for the version of the model.

static let creatorDefinedKey: MLModelMetadataKey

Key for the model creator’s custom metadata.

Creating Metadata


See Also

Accessing Metadata

var metadata: [MLModelMetadataKey : Any]

Metadata object that has information related to the model, as defined by the keys in the MLModelMetadataKey.

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