Class

MLDictionaryFeatureProvider

A convenience wrapper for the given dictionary of data.

Declaration

@interface MLDictionaryFeatureProvider : NSObject

Overview

If your input data is stored in a dictionary, consider this type of MLFeatureProvider that is backed by a dictionary. It is a convenience interface, saving you the trouble of iterating through the dictionary to assign all of its values.

Topics

Creating the Provider

- initWithDictionary:error:

Creates the feature provider based on a dictionary.

Accessing the Features

- objectForKeyedSubscript:

Subscript interface for the feature provider to pass through to the dictionary.

dictionary

The backing dictionary.

Relationships

Inherits From

See Also

Model Features

MLFeatureValue

A feature's value and its type bundled as a read-only instance.

MLFeatureProvider

An interface that represents a collection of values for either a model's input or its output.

MLBatchProvider

An interface that represents a collection of feature providers.

MLArrayBatchProvider

A convenience wrapper for batches of feature providers.

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