Instance Method

predictions(from:options:)

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

Declaration

func predictions(from inputBatch: MLBatchProvider, options: MLPredictionOptions) throws -> MLBatchProvider

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

Predicting Output Values

func prediction(from: MLFeatureProvider) -> MLFeatureProvider

Predicts output feature values from the given input feature values.

func prediction(from: MLFeatureProvider, options: MLPredictionOptions) -> MLFeatureProvider

Predicts output feature values from the given input feature values.

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 MLPredictionOptions

The options available when making a prediction.