---
title: "predictions(from:options:)"
framework: coreml
role: symbol
role_heading: Instance Method
path: "coreml/mlmodel/predictions(from:options:)"
---

# predictions(from:options:)

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

## Declaration

```swift
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

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

## Discussion

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

## See Also

### Making predictions

- [prediction(from:)](coreml/mlmodel/prediction(from:).md)
- [prediction(from:options:)](coreml/mlmodel/prediction(from:options:).md)
- [predictions(fromBatch:)](coreml/mlmodel/predictions(frombatch:).md)
- [prediction(from:using:)](coreml/mlmodel/prediction(from:using:).md)
- [prediction(from:using:options:)](coreml/mlmodel/prediction(from:using:options:).md)
- [MLPredictionOptions](coreml/mlpredictionoptions.md)
