Contents

predictions(fromBatch:)

Generates predictions for each input feature provider within the batch provider.

Declaration

func predictions(fromBatch inputBatch: any MLBatchProvider) throws -> any MLBatchProvider

Parameters

  • inputBatch:

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

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