---
title: CoreMLFeatureValueObservation
framework: vision
role: symbol
role_heading: Structure
path: vision/coremlfeaturevalueobservation
---

# CoreMLFeatureValueObservation

An object that represents a collection of key-value information that a Core ML image-analysis request produces.

## Declaration

```swift
struct CoreMLFeatureValueObservation
```

## Overview

Overview This type of observation results from performing a CoreMLRequest image analysis with a Core ML model whose role is prediction rather than classification or image-to-image processing. The framework infers that an MLModel object is a predictor model if that model predicts multiple features. You can tell that a model predicts multiple features when its modelDescription object has a nil value for its predictedFeatureName property, or when it inserts its output in an outputDescriptionsByName dictionary. The confidence for these observations is always 1.0.

## Topics

### Creating an observation

- [init(_:)](vision/coremlfeaturevalueobservation/init(_:).md)

### Inspecting an observation

- [RequestDescriptor](vision/requestdescriptor.md)

### Getting the feature name and value

- [featureName](vision/coremlfeaturevalueobservation/featurename.md)
- [featureValue](vision/coremlfeaturevalueobservation/featurevalue.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [VisionObservation](vision/visionobservation.md)

## See Also

### Understanding the result

- [PixelBufferObservation](vision/pixelbufferobservation.md)
- [ClassificationObservation](vision/classificationobservation.md)
