Class

MLParameterDescription

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

Declaration

class MLParameterDescription : NSObject

Topics

Describing the Model Parameter

var defaultValue: Any

The default value for the parameter.

var key: MLParameterKey

The key for this parameter description value.

class MLParameterKey

A key for model and update parameter dictionaries.

Constraining Numeric Values

var numericConstraint: MLNumericConstraint?

The constraints of this paramter description value, if and only if the value is numerical.

class MLNumericConstraint

The value limitations of a number.

Relationships

Inherits From

See Also

Accessing Update Descriptions

var isUpdatable: Bool

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

var trainingInputDescriptionsByName: [String : MLFeatureDescription]

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

class MLParameterKey

A key for model and update parameter dictionaries.