Instance Method

featureValue(for:)

Accesses the feature value given the feature's name.

Required.

Declaration

func featureValue(for featureName: String) -> MLFeatureValue?

Parameters

featureName

The name of the feature of the desired value.

Return Value

The value of the feature, or nil if no value exists for that name.

See Also

Accessing Values

var featureNames: Set<String>

The set of valid feature names.

Required.

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