# Difference between combined\_windows.json and combined\_labels.json

**URL:** <https://discourse.numenta.org/t/difference-between-combined-windows-json-and-combined-labels-json/7067>\
**Category:** NAB\
**Tags:** question\
**Created:** [January 16, 2020, 3:09pm UTC](https://discourse.numenta.org/t/difference-between-combined-windows-json-and-combined-labels-json/7067 "2020-01-16T15:09:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iliabautista](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/iliabautista/32/3879_2.png) [@iliabautista](https://discourse.numenta.org/u/iliabautista)\
**Post date:** [January 16, 2020, 3:09pm UTC](https://discourse.numenta.org/t/difference-between-combined-windows-json-and-combined-labels-json/7067/1 "2020-01-16T15:09:13Z")

</div>

In [https://github.com/numenta/NAB/tree/master/labels](https://github.com/numenta/NAB/tree/master/labels), there are two types of labels: combined\_windows.json and combined\_labels.json. Is there a difference between the two? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Balladeer](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/balladeer/32/3094_2.png) [@Balladeer](https://discourse.numenta.org/u/Balladeer)\
**Post date:** [January 20, 2020, 7:23pm UTC](https://discourse.numenta.org/t/difference-between-combined-windows-json-and-combined-labels-json/7067/2 "2020-01-20T19:23:40Z")

</div>

I _believe_ that the `labels` file is the rawer of the two – it contains files names and a list of specific timestamps in those files where an anomaly happens.

In setting up NAB, those labeled anomalies are converted into ‘windows’ – that is, each anomaly is given a range of time surrounding it that is considered ‘in the anomaly window’. How large this window should be is configurable (and describe in the NAB paper, I believe).

For example, here is a label:

```auto
"artificialWithAnomaly/art_daily_flatmiddle.csv": [
        "2014-04-11 00:00:00"
    ],

```

This file has a single anomaly at `"2014-04-11 00:00:00"`.

During setup of NAB, this one anomaly is turned into the window:

```auto
"artificialWithAnomaly/art_daily_flatmiddle.csv": [
        [
            "2014-04-10 07:15:00.000000",
            "2014-04-11 16:45:00.000000"
        ]
    ],

```

Any detector which detects an anomaly between the two above timestamps will have ‘detected the anomaly’ (with a higher score given for detecting the anomaly earlier in the window).
