# Concept shift

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

{% hint style="info" %}
Note: Concept shift 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 shift page:

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

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

<figure><img src="https://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2F9Pn5EGLPheq2MRpZW2am%2Fconcept_shift_dashboard.png?alt=media&#x26;token=e6035622-e6fc-4839-a8fa-a3ce5d2bdf1e" alt=""><figcaption><p>Concept shift dashboard.</p></figcaption></figure>

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

### 1. Filters

{% tabs %}
{% tab title="1.1 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2F06YR2AymphUWGJNI1g0b%2Fconcept_shift_metrics.png?alt=media&#x26;token=608c9813-edb6-408f-9894-edb866199258" alt="" width="201"><figcaption><p>Concept shift metrics filter.</p></figcaption></figure>
{% endtab %}

{% tab title="1.2 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FiXfjnd2AATqCS5k8nRqD%2Fnew_alert_status.png?alt=media&#x26;token=a857d035-9234-408b-8454-033d81edd6a6" alt="" width="233"><figcaption><p>Alert status filter.</p></figcaption></figure>
{% endtab %}

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

<figure><img src="https://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FIDegW3PpSchj1kMYeDpk%2Fconcept_shift_tags.png?alt=media&#x26;token=44e1834c-1f9d-4d19-a39c-1b05a323eabd" 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FAKXEwjH4p7K990CoTTZG%2Fperf_sort_by.png?alt=media&#x26;token=2ca41435-bfa4-418d-9b9c-d8356f2530ac" alt="" width="203"><figcaption><p>Sort by window.</p></figcaption></figure>
{% endtab %}

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

<figure><img src="https://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FQF4norXN1wEx2tTUqJSy%2Fdate_range.png?alt=media&#x26;token=1b373de3-8a3c-411a-b32c-966371f73751" alt="" width="342"><figcaption><p>Date range window.</p></figcaption></figure>
{% endtab %}

{% tab title="2.3 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FUWAouBfYp5yH7HkcZJto%2Fplot_data_format_gifs.gif?alt=media&#x26;token=6cc2a51b-a405-4244-bd7e-bd07e6d53f79" alt=""><figcaption><p>Date range reset.</p></figcaption></figure>
{% endtab %}

{% tab title="2.4 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FUWAouBfYp5yH7HkcZJto%2Fplot_data_format_gifs.gif?alt=media&#x26;token=6cc2a51b-a405-4244-bd7e-bd07e6d53f79" alt=""><figcaption><p>Date slider.</p></figcaption></figure>
{% endtab %}

{% tab title="2.5 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FxVrS8Ly4g1WDuvQnRY3o%2Fconcept_shift_chart.png?alt=media&#x26;token=1af8a4d6-0d8d-448a-a7aa-c8318e917055" alt=""><figcaption><p>Concept shift chart.</p></figcaption></figure>
{% endtab %}
{% endtabs %}

### 3. Plots

{% 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FxzvUj0bUB33zwKKA5IQh%2Fplot_format_gifs.gif?alt=media&#x26;token=04a83552-fc62-4829-a945-15d2dfc57529" 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2F5ikire6geXQnV2lmK8RR%2Fdatasets_gif.gif?alt=media&#x26;token=77ca4d9d-1e9a-4394-8ada-049383029e06" 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://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FocvP9pUOsrpKDJmtJpvO%2Fplot_elements_correct_gif.gif?alt=media&#x26;token=7349e037-228a-4dde-9a42-51dbc331c03c" alt=""><figcaption><p>Plots elements.</p></figcaption></figure>
{% endtab %}
{% endtabs %}
