---
title: MLDictionaryFeatureProvider
framework: coreml
role: symbol
role_heading: Class
path: coreml/mldictionaryfeatureprovider
---

# MLDictionaryFeatureProvider

A convenience wrapper for the given dictionary of data.

## Declaration

```swift
class MLDictionaryFeatureProvider
```

## Overview

Overview If your input data is stored in a dictionary, consider this type of 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:)](coreml/mldictionaryfeatureprovider/init(dictionary:).md)

### Accessing the features

- [subscript(_:)](coreml/mldictionaryfeatureprovider/subscript(_:).md)
- [dictionary](coreml/mldictionaryfeatureprovider/dictionary.md)

### Initializers

- [init(coder:)](coreml/mldictionaryfeatureprovider/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [MLFeatureProvider](coreml/mlfeatureprovider.md)
- [NSCoding](foundation/nscoding.md)
- [NSFastEnumeration](foundation/nsfastenumeration.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Model inputs and outputs

- [Making Predictions with a Sequence of Inputs](coreml/making-predictions-with-a-sequence-of-inputs.md)
- [MLFeatureValue](coreml/mlfeaturevalue.md)
- [MLSendableFeatureValue](coreml/mlsendablefeaturevalue.md)
- [MLFeatureProvider](coreml/mlfeatureprovider.md)
- [MLBatchProvider](coreml/mlbatchprovider.md)
- [MLArrayBatchProvider](coreml/mlarraybatchprovider.md)
- [MLModelAsset](coreml/mlmodelasset.md)
