Class

MLModelDescription

Information about a model, primarily the expected input and output format for each feature, and optional metadata.

Declaration

@interface MLModelDescription : NSObject

Topics

Accessing Feature Descriptions

inputDescriptionsByName

Descriptions of this model's various input features, keyed by each feature's name.

outputDescriptionsByName

Descriptions of this model's various output features, keyed by each feature's name.

MLFeatureDescription

The name, type, and constraints of an input or output feature.

Accessing Metadata

metadata

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

MLModelMetadataKey

Keys for the metadata dictionary used by the model.

Accessing Prediction Names

predictedFeatureName

The name of the value that is being predicted.

predictedProbabilitiesName

The name of the probabilities for the prediction.

Accessing Update Descriptions

isUpdatable

A Boolean value that indicates whether you can update the model with additional training.

Beta
trainingInputDescriptionsByName

Provides access to each training input as a feature description, given the name of the input.

Beta
MLParameterKey

A key for model and update parameter dictionaries.

Beta
MLParameterDescription

The description of a model parameter that includes a default value and a constraint, if applicable.

Beta

Instance Properties

Relationships

Inherits From

Conforms To

See Also

Inspecting a Model

configuration

The configuration of the model set during initialization.

modelDescription

Information about this model, intended for use during development, which is also displayed in the Xcode view of the model.

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