Protocol

MLBatchProvider

An interface that represents a collection of feature providers.

Declaration

@protocol MLBatchProvider

Overview

Similar to the MLFeatureProvider, this interface allows you to define your own batch provider. If you collect your data asynchronously or it is memory intensive, implement this protocol on your data structure to optimize performance with batch processing.

Topics

Accessing Values

- featuresAtIndex:

Returns the feature provider at the given index.

Required.

count

The number of feature providers in this batch.

Required.

Relationships

Conforming Types

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.

MLDictionaryFeatureProvider

A convenience wrapper for the given dictionary of data.

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