Class

MLModelDescription

Information about the model, primarily the expected input and output format, with additional optional metadata.

Topics

Accessing Metadata

var metadata: [MLModelMetadataKey : Any]

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

struct MLModelMetadataKey

Keys for the metadata dictionary used by the model.

Accessing Feature Descriptions

var inputDescriptionsByName: [String : MLFeatureDescription]

Descriptions of the various inputs into the model, by feature name.

var outputDescriptionsByName: [String : MLFeatureDescription]

Description of the various outputs from the model, by feature name.

Accessing Prediction Names

var predictedFeatureName: String?

The name of the value that is being predicted.

var predictedProbabilitiesName: String?

The name of the probabilities for the prediction.

Relationships

Inherits From

Conforms To

See Also

Inspecting a Model

var modelDescription: MLModelDescription

Metadata about the model, which is also displayed in the Xcode view of the model.