<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModel/predictions(fromBatch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLModel(im)predictionsFromBatch:error:"
  },
  "title" : "predictions(fromBatch:)"
}
-->

# predictions(fromBatch:)

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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)