Contents

CoreMLFeatureValueObservation

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

Declaration

struct CoreMLFeatureValueObservation

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

Inspecting an observation

Getting the feature name and value

See Also

Understanding the result