Contents

predictions(from:options:)

Generates a prediction for each input feature provider within the batch provider using the prediction options.

Declaration

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

Parameters

  • inputBatch:

    A batch provider that contains multiple input feature providers. The model makes a prediction for each feature provider.

  • options:

    The runtime settings the model uses as it makes a prediction.

Return Value

A batch provider that contains an output feature provider for each prediction.

Discussion

Use this method to make more than one prediction at one time.

See Also

Making predictions