Vector Monitoring
Many modern machine learning systems use input features that cannot be represented as a single number (e.g., text or image data). Such complex features are usually rather represented by high-dimensional vectors which are obtained by applying a vectorization method (e.g., text embeddings generated by NLP models). Furthermore, Fiddler users might be interested in monitoring a group of univariate features together and detecting data drift in multi-dimensional feature spaces.
In order to address the above needs, Fiddler provides a vector monitoring capability which involves enabling users to define "custom features", and a novel method for monitoring data drift in multi-dimensional spaces.
Custom features can be defined by grouping columns together in the baseline and inference data. Or, in the case of NLP or image data, custom features can be defined using columns containing embedding vectors.
Defining Custom Features
Users can use the Fiddler client to define one or more custom features. Custom features can be specified by:
a group of dataset columns that need to be monitored together as a vector. (CF1, CF2)
a column containing an existing embedding vector along with the source column (CF3, CF4)
defining an enrichment that will instruct Fiddler to generate the embedding vector within the product itself (CF5, CF6).
Once a list of custom features is defined and passed to Fiddler (the details of how to use the Fiddler client to define custom features are provided below), Fiddler runs a clustering-based data drift detection algorithm for each custom feature and calculates a corresponding drift value between the baseline and the published events at the selected time period.
Passing Custom Features List to ModelSpec
Once the custom features are defined for vector monitoring, they are then defined as a part of the fdl.ModelSpec
and onboarded to Fiddler.
📘 Quick Start for NLP Monitoring
Check out our Quick Start guide for NLP monitoring for a fully functional notebook example where we instruct Fiddler to generate the embeddings for unstructured inputs.
Last updated