predictions(from:options:)
Predicts output values from the given batch of input features.
Declaration
optional func predictions(from inputBatch: any MLBatchProvider, options: MLPredictionOptions) throws -> any MLBatchProviderParameters
- inputBatch:
The batch of feature values the model needs to make its predictions.
- options:
The options to be applied to the predictions.
Return Value
A batch provider that represents the model’s predictions for the batch of inputs.