# Data quality

The data quality dashboard allows for analyzing the changes in missing and unseen values over time. Here is our guide explaining how to use the data quality dashboard:

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

<figure><img src="https://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FLzvJmeD6OECRldwZhVz8%2Fnew_data_quality.png?alt=media&#x26;token=31e7b0c5-b90a-4441-9298-2370097c767d" alt=""><figcaption><p>Data quality dashboard.</p></figcaption></figure>

There are three main components of the **Data quality** dashboard:

### **1. Filters**

{% tabs %}
{% tab title="1.1 Metrics" %}
Filter which data quality metrics you want to see. Data quality metrics that are not calculated are not visible under the filter. Selecting which data quality metrics you want to calculate can be done under [model settings.](https://docs.nannyml.com/cloud/v0.20.2/product-tour/model-side-panel/model-settings)&#x20;

{% hint style="info" %}
Note that unseen values do not apply to continuous columns. It is typically used to assess if new categories are appearing on which the model was not trained.
{% endhint %}

<figure><img src="https://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FDICGef3ELbdGoiqKLbBL%2Fdata_quality_metrics.png?alt=media&#x26;token=f87e2c4d-492d-4baf-a4dc-0dc5aa44fa46" alt="" width="252"><figcaption><p>Metrics filter.</p></figcaption></figure>
{% endtab %}

{% tab title="1.2 Columns" %}
Filter the resulting charts by the columns you want to see.&#x20;

{% hint style="info" %}
Note that the data quality metrics can also be applied to the model output and the target, not just the features.
{% endhint %}

<figure><img src="https://2363051145-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWcs3xQupCdtvmF6k2Sun%2Fuploads%2FkqhcVW1mbww7NvgPiEhE%2Fnew_data_quality_columns.png?alt=media&#x26;token=64dc6772-64a2-4f2f-8e64-b97a121538ff" alt="" width="312"><figcaption><p>Columns filter.</p></figcaption></figure>
{% endtab %}

{% tab title="1.3 Alert status" %}
Select which metrics to display depending on whether there are alerts in the last chunk, alerts in the previous chunks, or no alerts at all, 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.4 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%2FlLvwsETpNNwVF1bewZnY%2Ftags.png?alt=media&#x26;token=0d296bc4-1e71-4ac8-8086-97e630436947" alt="" width="290"><figcaption><p>Tags filter.</p></figcaption></figure>
{% endtab %}
{% endtabs %}

### **2. Visualisations**

{% 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%2Fg5fpU8PKSpFsJ8vYv8XH%2Fcovariate_shift_sort_by.png?alt=media&#x26;token=73ade835-3d88-458d-9110-b33eaf161329" alt="" width="194"><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; you can hover over them for more details. Red squares signal alerts, and the blue line represents the metric in the reference period. The light blue line indicates the metric during the analysis period.

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%2FnULSHEsc4OdWP27HsnO1%2Fdata_quality_plot.png?alt=media&#x26;token=2b786f28-2351-4515-a8fe-e9686f72a566" alt=""><figcaption><p>Data quality plot.</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 formats.</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>Plot elements.</p></figcaption></figure>
{% endtab %}
{% endtabs %}
