Creating a Baseline Dataset
Fiddler requires a baseline to detect data drift in production data. Baselines serve as a point of reference for Fiddler to understand what data distributions the model expects to see for all of its inputs and outputs. In other words, a baseline is a representative sample of the data you expect to see in production. It represents the ideal data that your model works best on. For this reason, in most cases, a baseline dataset should be sampled from your model’s training set.
A few things to remember when designing baselines:
It’s important to include enough data to ensure you have a representative sample of the expected data distributions. If using the training data for your baseline, you don't necessarily need all the training data, but rather enough to properly denote the minimums, maximums, and each distinct categorical value to be encountered.
You may want to consider including extreme values (min/max) of each column in your training set so you can adequately monitor range violations in production data. However, if you choose not to, you can manually specify these ranges before onboarding your model (see customizing your dataset schema).
Types of Baselines
There are four (4) types of baselines in Fiddler:
Static Pre-production - These are defined using previously uploaded datasets. Typically, these previously uploaded datasets are training datasets or subsets thereof. Training data is an excellent baseline as it represents the data the model should expect to receive in production. It is worth noting that Fiddler automatically creates this type of baseline when uploading pre-production datasets.
Static Production - Using time ranges, previously ingested inference logs can be defined to define a static production baseline. For example, you can define a baseline as a point of reference from every event or inference ingested from March 2024. It is worth noting that static production baselines are not immutable. For example, if new events are published into the time range of the baseline, the distributions defined by the baseline will be recalculated.
Rolling Production - A rolling production baseline provides a dynamic reference point that shifts with time, like a sliding window that always reflects a fixed period prior to the present moment. For example, with a one-month rolling baseline, today's data is compared with data from exactly one month ago, and this comparison window automatically shifts forward each day. Unlike static baselines, which remain fixed, rolling baselines maintain a consistent time distance from your current data, making them ideal for analyzing recurring patterns in your production environment.
Default Static - Fiddler always creates this type of baseline for you for every model. This ensures Fiddler can deliver drift calculations even if no other baseline type was defined. This default baseline is named default_static_baseline and gets created at the time of initial model schema creation. It is defined as a static production baseline using the time range starting 12 months before the Fiddler model object creation date and ending 3 months after that date. It is worth noting that default static production baselines are not immutable like static production baselines. For example, if new events are published into the time range of the baseline, the distributions defined by the baseline will be recalculated, and this may have some impact on previously calculated drift values used in Alerts and Charts.
An example of how to create each type of baseline can be found below.
Static Pre-production Baseline
A baseline of the same name also gets created when you upload your pre-production dataset as shown in the example below.
Static Production Baseline
Rolling Production Baseline
Default Static Baseline
(Note: while this example doesn't illustrate explicitly creating a default baseline, it illustrates when the default static baseline gets created.)
List A Model's Baselines
Last updated