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

# predictions(from:options:)

Predicts output values from the given batch of input features.

## Declaration

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

## Parameters

- `inputBatch`: The batch of feature values the model needs to make its predictions.
- `options`: The options to be applied to the predictions.

## Return Value

Return Value A batch provider that represents the model’s predictions for the batch of inputs.

## See Also

### Making predictions

- [prediction(from:options:)](coreml/mlcustommodel/prediction(from:options:).md)
