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

# predictions(fromBatch:)

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

## Declaration

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

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(from:options:)](coreml/mlmodel/predictions(from:options:).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)
