Instance Method

predictionsFromBatch:options:error:

Predicts output feature values from the given a batch of input feature values and prediction options.

Declaration

- (id<MLBatchProvider>)predictionsFromBatch:(id<MLBatchProvider>)inputBatch options:(MLPredictionOptions *)options error:(NSError * _Nullable *)error;

Parameters

inputBatch

The batch of feature values the model needs to make its predictions.

options

All the options to be applied to the prediction.

Return Value

A batch provider that represents the model’s predictions for the batch of inputs.

See Also

Making Predictions

- predictionFromFeatures:error:

Predicts output feature values from the given input feature values.

- predictionFromFeatures:options:error:

Predicts output feature values from the given input feature values and prediction options.

- predictionsFromBatch:error:

Predicts output feature values from the given a batch of input feature values.

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.

MLPredictionOptions

The options available when making a prediction.