<!--
{
  "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/MLArrayBatchProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLArrayBatchProvider"
  },
  "title" : "MLArrayBatchProvider"
}
-->

# MLArrayBatchProvider

A convenience wrapper for batches of feature providers.

```
class MLArrayBatchProvider
```

## Overview

This batch provider supports an array of feature providers or a dictionary of arrays of feature values.

## Topics

### Creating a batch provider

[`init(array:)`](/documentation/CoreML/MLArrayBatchProvider/init(array:))

Creates the batch provider based on the array of feature providers.

[`init(dictionary:)`](/documentation/CoreML/MLArrayBatchProvider/init(dictionary:))

Creates a batch provider based on feature names and their associated arrays of data.

### Accessing the feature providers

[`array`](/documentation/CoreML/MLArrayBatchProvider/array)

The array of feature providers.



---

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)