# Concept drift

The Concept drift dashboard enables you to analyze the impact and magnitude of concept drift. To calculate these results, NannyML Cloud requires the analysis set to include a ground truth column.&#x20;

{% hint style="info" %}
Note: Concept drift detection is currently supported only for **binary classification** use cases. For custom support in regression use cases, please [contact us on our website](https://www.nannyml.com/contact-us).
{% endhint %}

If you prefer a video walkthrough, here is our guide explaining how to use the concept drift page:

{% embed url="https://youtu.be/-MjrtLIIq9M" %}

Here, you can find detailed descriptions of various elements on the concept drift page:

<figure><img src="https://1673962307-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvipr4qR9MrP243sDPhAQ%2Fuploads%2FwHsWJJ12e876GX9XWLi2%2Festimated.001.jpeg?alt=media&#x26;token=c1be88d8-485a-49e6-ab52-d9f53ba6eabf" alt=""><figcaption><p>Concept shift dashboard.</p></figcaption></figure>

The **Concept** **drift** dashboard consists of three main components:

### 1. Filters

{% tabs %}
{% tab title="1.1 Segmentation" %}


Segmentation allows you to split your data into groups and analyze them separately.

For a given model, each of the columns that are selected for segmentation during configuration or in the model settings appears under the segmentation filter. Segments are then created for each of the distinct values within that column.&#x20;

In the filter section, you can select the segments you want to see visualized. You can also select **All data** to visualize results for the entire dataset.

<figure><img src="https://1673962307-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvipr4qR9MrP243sDPhAQ%2Fuploads%2FF8HuhNnWDo8RLkONcgkF%2FScreen%20Shot%202024-07-25%20at%206.41.58%20PM.png?alt=media&#x26;token=417b0c0c-3131-473a-8aba-26a5288473fb" alt="" width="292"><figcaption><p>Select segments of interest</p></figcaption></figure>
{% endtab %}

{% tab title="1.2 Metrics" %}
Select which metrics you want to have displayed on the performance impact graph. Additionally, a magnitude metric illustrates the magnitude of concept drift at specific periods.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/h0WWDI1seGnmDJpdCV8A/concept_shift_metrics.png" alt="" width="201"><figcaption><p>Concept shift metrics filter.</p></figcaption></figure>
{% endtab %}

{% tab title="1.3 Alert status " %}
Choose which metrics to display based on whether there are no alerts, alerts in any or only the last chunk, alerts in performance metric with the main tag, or include all charts regardless of when and if any alerts occurred.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/dFaqhnC21fdxujiwUvh6/new_alert_status.png" alt="" width="233"><figcaption><p>Alert status filter.</p></figcaption></figure>
{% endtab %}

{% tab title="1.4 Tags" %}
Filter charts by the previously specified tags.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/lGl1mrayHo1f6EeGLUjx/concept_shift_tags.png" alt="" width="204"><figcaption><p>Tags filter.</p></figcaption></figure>
{% endtab %}
{% endtabs %}

### 2. Visualizations

{% tabs %}
{% tab title="2.1 Sort by" %}
You can change the order of charts based on the metric name, number, or recency of the alerts.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/jN5Fi1U06Nsf3y9A6LRJ/perf_sort_by.png" alt="" width="203"><figcaption><p>Sort by window.</p></figcaption></figure>
{% endtab %}

{% tab title="2.2 Ascending/descending order" %}
For all sorting methods, the icons shown below toggle between ascending and descending order. The icon displayed depends on the selected sorting method.

* **Metric Name**: The icon toggles between alphabetical order and reverse alphabetical order. The default mode is alphabetical order.
* **Nr of Alerts**: The icon toggles between ascending and descending order based on the number of alerts. The default mode displays plots with the most alerts first.
* **Recency of Alerts**: The icon toggles between showing newer alerts first and older alerts first. The default mode shows the most recent alerts first.

<div><figure><img src="https://1673962307-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvipr4qR9MrP243sDPhAQ%2Fuploads%2F9EYgud4Rj44XlcAlLq6M%2FScreen%20Shot%202024-07-25%20at%205.42.46%20PM.png?alt=media&#x26;token=a774ea0e-2494-44b0-aaa2-48659fea0006" alt="" width="118"><figcaption><p>Toggle for 'Nr of alerts'</p></figcaption></figure> <figure><img src="https://1673962307-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fvipr4qR9MrP243sDPhAQ%2Fuploads%2FjS0QlFaJ1g8SDqAbmM5j%2FScreen%20Shot%202024-07-25%20at%205.36.52%20PM.png?alt=media&#x26;token=25f7dcc7-5d4e-4592-bf27-da36ec1bdf4f" alt="" width="120"><figcaption><p>Toggle for other sorting methods</p></figcaption></figure></div>
{% endtab %}

{% tab title="2.3 Date range" %}
You can select a specific period of interest which applies to all charts.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/BqWjqRPA1JMevsc8YiTq/date_range.png" alt="" width="342"><figcaption><p>Date range window.</p></figcaption></figure>
{% endtab %}

{% tab title="2.4 Date reset" %}
To reset a previously set date period, whether using the date range or slider, simply press the "Reset" button.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/UUQ3loRLVMpHulIim9sB/plot_data_format_gifs.gif" alt=""><figcaption><p>Date range reset.</p></figcaption></figure>
{% endtab %}

{% tab title="2.5 Date slider" %}
Similar to selecting a date range, you can choose a specific period of interest by simply moving the date slider.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/UUQ3loRLVMpHulIim9sB/plot_data_format_gifs.gif" alt=""><figcaption><p>Date slider.</p></figcaption></figure>
{% endtab %}

{% tab title="2.6 Chart" %}
The charts are interactive, allowing you to hover over them for more details. Red dotted lines indicate the thresholds, while the blue line shows the metric during the reference period. The light blue line represents the metric during the analysis period. The lightly shaded area around the performance impact estimation is the metric's confidence band.

You can also zoom in on any part of a chart. Simply press and hold your mouse button, then draw a square over your area of interest. To reset the zoom, just double-click on the chart.&#x20;

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/TKy7rIBoF0mp3INMoGUM/concept_shift_chart.png" alt=""><figcaption><p>Concept shift chart.</p></figcaption></figure>
{% endtab %}
{% endtabs %}

### 3. Plot config

{% tabs %}
{% tab title="3.1 Plot format" %}
There are two types of plot formats: line and step. A line plot smoothly connects points with straight lines to show trends, while a step plot uses sharp vertical and horizontal lines to show exact changes between points clearly.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/axKrAkKIFwU14T4XzmyF/plot_format_gifs.gif" alt=""><figcaption><p>Plot format.</p></figcaption></figure>
{% endtab %}

{% tab title="3.2 Datasets" %}
Select datasets to zoom in on reference, analysis, or create a separate subplot for both.&#x20;

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/PTzI0pNubbBBnStBXy55/datasets_gif.gif" alt=""><figcaption><p>Datasets plots.</p></figcaption></figure>
{% endtab %}

{% tab title="3.3 Plot elements" %}
Toggle on or off some components on the charts, like alerts, confidence bands, thresholds, and legends.

<figure><img src="https://content.gitbook.com/content/vipr4qR9MrP243sDPhAQ/blobs/2VDyTr2Dgh9IXc0H63WC/plot_elements_correct_gif.gif" alt=""><figcaption><p>Plots elements.</p></figcaption></figure>
{% endtab %}
{% endtabs %}



