Class

MLDictionaryFeatureProvider

A convenience wrapper for the given dictionary of data.

Declaration

class 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

init(dictionary: [String : Any])

Creates the feature provider based on a dictionary.

Accessing the Features

subscript(String) -> MLFeatureValue?

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

See Also

Model Features

class MLFeatureValue

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

protocol MLFeatureProvider

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

protocol MLBatchProvider

An interface that represents a collection of feature providers.

class 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