<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLDictionaryFeatureProvider",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLDictionaryFeatureProvider"
  },
  "title" : "MLDictionaryFeatureProvider"
}
-->

# MLDictionaryFeatureProvider

A convenience wrapper for the given dictionary of data.

```
class MLDictionaryFeatureProvider
```

## Overview

If your input data is stored in a dictionary, consider this type of [`MLFeatureProvider`](/documentation/CoreML/MLFeatureProvider) that is backed by a dictionary. It is a convenience interface, saving you the trouble of iterating through the dictionary to assign all of its values.

## Topics

### Creating the provider

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

Creates the feature provider based on a dictionary.

### Accessing the features

[`subscript(_:)`](/documentation/CoreML/MLDictionaryFeatureProvider/subscript(_:))

Subscript interface for the feature provider to pass through to the dictionary.

[`dictionary`](/documentation/CoreML/MLDictionaryFeatureProvider/dictionary)

The backing dictionary.



---

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)