{
  "id": 442575,
  "title": "What does NaN in train events mean?",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/442575",
  "author_name": "",
  "post_date": "2023-09-23T08:59:22.812639800Z",
  "votes": 5,
  "comment_count": 8,
  "views": 0,
  "content": "<p>As many people has pointed out, there are lots of NaNs in train events data. I used to think that it means no meaningful events detected at that night. However, there are also series like 31011ade7c0a and a596ad0b82aa, that have no NaNs yet a long label-less period. </p>\n<p>So what does NaN really means? what is the difference between NaNs and label-less period?</p>\n<p>ps: there are also series with NaNs and a long label-less period, like 05e1944c3818 and 10469f6765bf. </p>",
  "messages": [
    {
      "id": "2452401",
      "postDate": "09/23/2023 08:59:22",
      "content": "<p>As many people has pointed out, there are lots of NaNs in train events data. I used to think that it means no meaningful events detected at that night. However, there are also series like 31011ade7c0a and a596ad0b82aa, that have no NaNs yet a long label-less period. </p>\n<p>So what does NaN really means? what is the difference between NaNs and label-less period?</p>\n<p>ps: there are also series with NaNs and a long label-less period, like 05e1944c3818 and 10469f6765bf. </p>",
      "rawMarkdown": "As many people has pointed out, there are lots of NaNs in train events data. I used to think that it means no meaningful events detected at that night. However, there are also series like 31011ade7c0a and a596ad0b82aa, that have no NaNs yet a long label-less period. \n\nSo what does NaN really means? what is the difference between NaNs and label-less period?\n\nps: there are also series with NaNs and a long label-less period, like 05e1944c3818 and 10469f6765bf.",
      "votes": null
    },
    {
      "id": "2452678",
      "postDate": "09/23/2023 13:55:46",
      "content": "<p>Yes, NaNs mean there were no events for that night (most likely, that the watch was taken off for the night). Also yes, there are some (what I think are) mislabelled series like 31011ade7c0a and a596ad0b82aa. </p>",
      "rawMarkdown": "Yes, NaNs mean there were no events for that night (most likely, that the watch was taken off for the night). Also yes, there are some (what I think are) mislabelled series like 31011ade7c0a and a596ad0b82aa.",
      "votes": null
    },
    {
      "id": "2452762",
      "postDate": "09/23/2023 15:02:46",
      "content": "<p>I think that make some sense if NaN and label-less period have no co-occurrence. However, there are also series with both present, like 05e1944c3818 and 10469f6765bf.</p>",
      "rawMarkdown": "I think that make some sense if NaN and label-less period have no co-occurrence. However, there are also series with both present, like 05e1944c3818 and 10469f6765bf.",
      "votes": null
    },
    {
      "id": "2452850",
      "postDate": "09/23/2023 16:05:06",
      "content": "<p>Hm. It may come down to this line:</p>\n<p>\"No sleep windows can be detected unless the watch is deemed to be worn for the duration\"</p>\n<p>In 31011ade7c0a in particular, that may explain some of what I thought was mislabelled… (explains some of the others as well perhaps)</p>",
      "rawMarkdown": "Hm. It may come down to this line:\n\n\"No sleep windows can be detected unless the watch is deemed to be worn for the duration\"\n\nIn 31011ade7c0a in particular, that may explain some of what I thought was mislabelled... (explains some of the others as well perhaps)",
      "votes": null
    },
    {
      "id": "2452971",
      "postDate": "09/23/2023 17:23:21",
      "content": "<p>The NaN periods are within the consecutive labeled nights starting from night one -- these are given in the events file. It seems that any label-less periods come after these and so are at the end of the series, as if the rater-person just got tired of labeling the events. There are other posts describing unlabeled regions of series.</p>\n<p>What I don't think happens is having an unlabeled night (or nights) with labeled nights before and after. </p>",
      "rawMarkdown": "The NaN periods are within the consecutive labeled nights starting from night one -- these are given in the events file. It seems that any label-less periods come after these and so are at the end of the series, as if the rater-person just got tired of labeling the events. There are other posts describing unlabeled regions of series.\n\nWhat I don't think happens is having an unlabeled night (or nights) with labeled nights before and after.",
      "votes": null
    },
    {
      "id": "2453038",
      "postDate": "09/23/2023 18:47:58",
      "content": "<p>It seems that unlabeled nights do appear at the end of the series, maybe some inconsistence in labeling I guess.</p>",
      "rawMarkdown": "It seems that unlabeled nights do appear at the end of the series, maybe some inconsistence in labeling I guess.",
      "votes": null
    },
    {
      "id": "2459005",
      "postDate": "09/28/2023 01:34:40",
      "content": "<p><a href=\"https://www.kaggle.com/aphysict\" target=\"_blank\">@aphysict</a> i made some analysis on these events , it's stated that a sleep period must be at least 30 minutes long. After checking, it seems that these missing sleep periods meet this requirement, as they appear to be longer than 30 minutes. </p>\n<p>I dont think so its an issue of mislabelling see my updated notebook section <a href=\"https://www.kaggle.com/code/oraware/dask-data-processing-with-train-series\" target=\"_blank\">Simple Analysis For Missing Steps</a></p>",
      "rawMarkdown": "aphysict i made some analysis on these events , it's stated that a sleep period must be at least 30 minutes long. After checking, it seems that these missing sleep periods meet this requirement, as they appear to be longer than 30 minutes. \n\nI dont think so its an issue of mislabelling see my updated notebook section [Simple Analysis For Missing Steps](https://www.kaggle.com/code/oraware/dask-data-processing-with-train-series)",
      "votes": null
    },
    {
      "id": "2460715",
      "postDate": "09/29/2023 04:15:26",
      "content": "<p>Hello, do you know (or have the host noticed) how the evaluation code works when real test events(label) contain NAN like train dataset?<br>\nThey simply ignore these samples or set these samples as awake?<br>\nThanks.</p>",
      "rawMarkdown": "Hello, do you know (or have the host noticed) how the evaluation code works when real test events(label) contain NAN like train dataset?\nThey simply ignore these samples or set these samples as awake?\nThanks.",
      "votes": null
    },
    {
      "id": "2461133",
      "postDate": "09/29/2023 10:01:57",
      "content": "<p>No idea, I guess they drop nans. Even for the train data, I don't know how to get score=1 with nan included. Hope <a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a> can share some information.</p>",
      "rawMarkdown": "No idea, I guess they drop nans. Even for the train data, I don't know how to get score=1 with nan included. Hope @ryanholbrook can share some information.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2452678,
      "author_name": "chris62",
      "author_url": "",
      "post_date": "09/23/2023 13:55:46",
      "content": "<p>Yes, NaNs mean there were no events for that night (most likely, that the watch was taken off for the night). Also yes, there are some (what I think are) mislabelled series like 31011ade7c0a and a596ad0b82aa. </p>",
      "votes": null,
      "replies": [
        {
          "id": 2452762,
          "author_name": "aphysict",
          "author_url": "",
          "post_date": "09/23/2023 15:02:46",
          "content": "<p>I think that make some sense if NaN and label-less period have no co-occurrence. However, there are also series with both present, like 05e1944c3818 and 10469f6765bf.</p>",
          "votes": null,
          "replies": [
            {
              "id": 2452850,
              "author_name": "chris62",
              "author_url": "",
              "post_date": "09/23/2023 16:05:06",
              "content": "<p>Hm. It may come down to this line:</p>\n<p>\"No sleep windows can be detected unless the watch is deemed to be worn for the duration\"</p>\n<p>In 31011ade7c0a in particular, that may explain some of what I thought was mislabelled… (explains some of the others as well perhaps)</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 2452971,
              "author_name": "dan3dewey",
              "author_url": "",
              "post_date": "09/23/2023 17:23:21",
              "content": "<p>The NaN periods are within the consecutive labeled nights starting from night one -- these are given in the events file. It seems that any label-less periods come after these and so are at the end of the series, as if the rater-person just got tired of labeling the events. There are other posts describing unlabeled regions of series.</p>\n<p>What I don't think happens is having an unlabeled night (or nights) with labeled nights before and after. </p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 2453038,
              "author_name": "aphysict",
              "author_url": "",
              "post_date": "09/23/2023 18:47:58",
              "content": "<p>It seems that unlabeled nights do appear at the end of the series, maybe some inconsistence in labeling I guess.</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2459005,
      "author_name": "oraware",
      "author_url": "",
      "post_date": "09/28/2023 01:34:40",
      "content": "<p><a href=\"https://www.kaggle.com/aphysict\" target=\"_blank\">@aphysict</a> i made some analysis on these events , it's stated that a sleep period must be at least 30 minutes long. After checking, it seems that these missing sleep periods meet this requirement, as they appear to be longer than 30 minutes. </p>\n<p>I dont think so its an issue of mislabelling see my updated notebook section <a href=\"https://www.kaggle.com/code/oraware/dask-data-processing-with-train-series\" target=\"_blank\">Simple Analysis For Missing Steps</a></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2460715,
      "author_name": "zui0711",
      "author_url": "",
      "post_date": "09/29/2023 04:15:26",
      "content": "<p>Hello, do you know (or have the host noticed) how the evaluation code works when real test events(label) contain NAN like train dataset?<br>\nThey simply ignore these samples or set these samples as awake?<br>\nThanks.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2461133,
          "author_name": "aphysict",
          "author_url": "",
          "post_date": "09/29/2023 10:01:57",
          "content": "<p>No idea, I guess they drop nans. Even for the train data, I don't know how to get score=1 with nan included. Hope <a href=\"https://www.kaggle.com/ryanholbrook\" target=\"_blank\">@ryanholbrook</a> can share some information.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2452401": "As many people has pointed out, there are lots of NaNs in train events data. I used to think that it means no meaningful events detected at that night. However, there are also series like 31011ade7c0a and a596ad0b82aa, that have no NaNs yet a long label-less period. \n\nSo what does NaN really means? what is the difference between NaNs and label-less period?\n\nps: there are also series with NaNs and a long label-less period, like 05e1944c3818 and 10469f6765bf.",
    "2452678": "Yes, NaNs mean there were no events for that night (most likely, that the watch was taken off for the night). Also yes, there are some (what I think are) mislabelled series like 31011ade7c0a and a596ad0b82aa.",
    "2452762": "I think that make some sense if NaN and label-less period have no co-occurrence. However, there are also series with both present, like 05e1944c3818 and 10469f6765bf.",
    "2452850": "Hm. It may come down to this line:\n\n\"No sleep windows can be detected unless the watch is deemed to be worn for the duration\"\n\nIn 31011ade7c0a in particular, that may explain some of what I thought was mislabelled... (explains some of the others as well perhaps)",
    "2452971": "The NaN periods are within the consecutive labeled nights starting from night one -- these are given in the events file. It seems that any label-less periods come after these and so are at the end of the series, as if the rater-person just got tired of labeling the events. There are other posts describing unlabeled regions of series.\n\nWhat I don't think happens is having an unlabeled night (or nights) with labeled nights before and after.",
    "2453038": "It seems that unlabeled nights do appear at the end of the series, maybe some inconsistence in labeling I guess.",
    "2459005": "aphysict i made some analysis on these events , it's stated that a sleep period must be at least 30 minutes long. After checking, it seems that these missing sleep periods meet this requirement, as they appear to be longer than 30 minutes. \n\nI dont think so its an issue of mislabelling see my updated notebook section [Simple Analysis For Missing Steps](https://www.kaggle.com/code/oraware/dask-data-processing-with-train-series)",
    "2460715": "Hello, do you know (or have the host noticed) how the evaluation code works when real test events(label) contain NAN like train dataset?\nThey simply ignore these samples or set these samples as awake?\nThanks.",
    "2461133": "No idea, I guess they drop nans. Even for the train data, I don't know how to get score=1 with nan included. Hope @ryanholbrook can share some information."
  },
  "source": "meta"
}