An abstract base class for machine learning key types.


class MLKey : NSObject


You don’t create use this class directly. Instead, use a class that inherits from this one, such as MLParameterKey or MLMetricKey.


Retrieving a Key’s Information

var name: String

The name of the machine learning key.

var scope: String?

The applicable scope of the machine learning key.


Inherits From

See Also

Inspecting a Model

var configuration: MLModelConfiguration

The configuration of the model set during initialization.

var modelDescription: MLModelDescription

Model information you use at runtime during development, which Xcode also displays in its Core ML model editor view.

class MLModelDescription

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

func parameterValue(for: MLParameterKey) -> Any

Returns a model parameter value for a key.

class MLParameterKey

The keys for the parameter dictionary in a model configuration or a model update context.