{
  "id": 442107,
  "title": "test file series span only 12.5 minutes per individual",
  "url": "/competitions/child-mind-institute-detect-sleep-states/discussion/442107",
  "author_name": "",
  "post_date": "2023-09-21T10:27:23.769683200Z",
  "votes": 3,
  "comment_count": 6,
  "views": 0,
  "content": "<p>The test file series only contain 3 individuals, each have a time series of only 12.5 minutes (150 steps). This makes it a bit weird to predict both onset and wakeup, as the rules state that a sleep period must be at least 30 minutes…</p>\n<p>So, is there only 1 event (onset or wakeup, but not both) per individual? </p>",
  "messages": [
    {
      "id": "2449645",
      "postDate": "09/21/2023 10:27:23",
      "content": "<p>The test file series only contain 3 individuals, each have a time series of only 12.5 minutes (150 steps). This makes it a bit weird to predict both onset and wakeup, as the rules state that a sleep period must be at least 30 minutes…</p>\n<p>So, is there only 1 event (onset or wakeup, but not both) per individual? </p>",
      "rawMarkdown": "The test file series only contain 3 individuals, each have a time series of only 12.5 minutes (150 steps). This makes it a bit weird to predict both onset and wakeup, as the rules state that a sleep period must be at least 30 minutes...\n\nSo, is there only 1 event (onset or wakeup, but not both) per individual?",
      "votes": null
    },
    {
      "id": "2449647",
      "postDate": "09/21/2023 10:30:11",
      "content": "<p>The test_Series.parquet files is only a dummy file to quickly check if your code produces any errors before submission.<br>\nAfter submitting, this file will get exchanged with the true hidden test set (~200 individuals with roughly the same length as in the training set) and your code will be rerun against this new file for the final submission.</p>",
      "rawMarkdown": "The test_Series.parquet files is only a dummy file to quickly check if your code produces any errors before submission.\nAfter submitting, this file will get exchanged with the true hidden test set (~200 individuals with roughly the same length as in the training set) and your code will be rerun against this new file for the final submission.",
      "votes": null
    },
    {
      "id": "2449929",
      "postDate": "09/21/2023 14:21:47",
      "content": "<p>As in other competitions, the test data file is only given as an example of the file format and not useful for model processing. One simple option is to read in the train data as the test data, especially in this competition where the \"ground truth\" is not in the train or test series data files.</p>\n<p>For example, something like this:</p>\n<pre><code>&lt;... your code ...&gt;\n\n\n\ntest_rows = &lt;your code here&gt;\n\n test_rows &gt; :\n    REAL_TEST = \n    ()\n:\n    \n    REAL_TEST = \n    ()\n    \n    test_file_name = train_file_name\n    &lt;redo  test parquet setup code using the modified test filename&gt;\n\n&lt;... your code ...&gt;\n</code></pre>\n<p>Then further in the code (at the end near submission) an <code>if not(REAL_TEST):</code> block can be run to compare the \"test\" results with the known train events to see how the model is doing.</p>",
      "rawMarkdown": "As in other competitions, the test data file is only given as an example of the file format and not useful for model processing. One simple option is to read in the train data as the test data, especially in this competition where the \"ground truth\" is not in the train or test series data files.\n\nFor example, something like this:\n```\n<... your code ...>\n\n# Get and check  the number of rows in the test file\n#        (various ways to do this without loading all the test data)\ntest_rows = <your code here>\n# Is this the real test data?\nif test_rows > 1000:\n    REAL_TEST = True\n    print(\"This is the real test data! Will never see this output :)\")\nelse:\n    # Not the real test data - use train instead.\n    REAL_TEST = False\n    print(\"Use the train data as test.\")\n    # Replace the test filename with the train filename\n    test_file_name = train_file_name\n    <redo any test parquet setup code using the modified test filename>\n \n<... your code ...>\n```\nThen further in the code (at the end near submission) an `if not(REAL_TEST):` block can be run to compare the \"test\" results with the known train events to see how the model is doing.",
      "votes": null
    },
    {
      "id": "2452292",
      "postDate": "09/23/2023 07:50:36",
      "content": "<p>Thanks for the clarification.</p>",
      "rawMarkdown": "Thanks for the clarification.",
      "votes": null
    },
    {
      "id": "2452293",
      "postDate": "09/23/2023 07:51:28",
      "content": "<p>Thanks for the clarification, and the suggestion. </p>",
      "rawMarkdown": "Thanks for the clarification, and the suggestion.",
      "votes": null
    },
    {
      "id": "2465717",
      "postDate": "10/03/2023 08:21:40",
      "content": "<p>Hi, I'm a rookie here and have no experience with competitions and and how usual test_files look like. Do you have a hunch whether the real test data is longer? If not I have to neglect the broader window around each step when making the prediction.</p>\n<p>Thanks! </p>",
      "rawMarkdown": "Hi, I'm a rookie here and have no experience with competitions and and how usual test_files look like. Do you have a hunch whether the real test data is longer? If not I have to neglect the broader window around each step when making the prediction.\n\nThanks!",
      "votes": null
    },
    {
      "id": "2466962",
      "postDate": "10/04/2023 07:43:13",
      "content": "<p>You can also check for <br>\n<code>os.getenv('KAGGLE_IS_COMPETITION_RERUN')</code></p>\n<p>This, is True for the submission run and False for the commit. No need to even access and check the test data. </p>",
      "rawMarkdown": "You can also check for \n`os.getenv('KAGGLE_IS_COMPETITION_RERUN')`\n\nThis, is True for the submission run and False for the commit. No need to even access and check the test data.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2449647,
      "author_name": "patrickaiforfun",
      "author_url": "",
      "post_date": "09/21/2023 10:30:11",
      "content": "<p>The test_Series.parquet files is only a dummy file to quickly check if your code produces any errors before submission.<br>\nAfter submitting, this file will get exchanged with the true hidden test set (~200 individuals with roughly the same length as in the training set) and your code will be rerun against this new file for the final submission.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2452292,
          "author_name": "meerkatstatistics",
          "author_url": "",
          "post_date": "09/23/2023 07:50:36",
          "content": "<p>Thanks for the clarification.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2449929,
      "author_name": "dan3dewey",
      "author_url": "",
      "post_date": "09/21/2023 14:21:47",
      "content": "<p>As in other competitions, the test data file is only given as an example of the file format and not useful for model processing. One simple option is to read in the train data as the test data, especially in this competition where the \"ground truth\" is not in the train or test series data files.</p>\n<p>For example, something like this:</p>\n<pre><code>&lt;... your code ...&gt;\n\n\n\ntest_rows = &lt;your code here&gt;\n\n test_rows &gt; :\n    REAL_TEST = \n    ()\n:\n    \n    REAL_TEST = \n    ()\n    \n    test_file_name = train_file_name\n    &lt;redo  test parquet setup code using the modified test filename&gt;\n\n&lt;... your code ...&gt;\n</code></pre>\n<p>Then further in the code (at the end near submission) an <code>if not(REAL_TEST):</code> block can be run to compare the \"test\" results with the known train events to see how the model is doing.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2452293,
          "author_name": "meerkatstatistics",
          "author_url": "",
          "post_date": "09/23/2023 07:51:28",
          "content": "<p>Thanks for the clarification, and the suggestion. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 2466962,
          "author_name": "ilu000",
          "author_url": "",
          "post_date": "10/04/2023 07:43:13",
          "content": "<p>You can also check for <br>\n<code>os.getenv('KAGGLE_IS_COMPETITION_RERUN')</code></p>\n<p>This, is True for the submission run and False for the commit. No need to even access and check the test data. </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2465717,
      "author_name": "urbanandras",
      "author_url": "",
      "post_date": "10/03/2023 08:21:40",
      "content": "<p>Hi, I'm a rookie here and have no experience with competitions and and how usual test_files look like. Do you have a hunch whether the real test data is longer? If not I have to neglect the broader window around each step when making the prediction.</p>\n<p>Thanks! </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2449645": "The test file series only contain 3 individuals, each have a time series of only 12.5 minutes (150 steps). This makes it a bit weird to predict both onset and wakeup, as the rules state that a sleep period must be at least 30 minutes...\n\nSo, is there only 1 event (onset or wakeup, but not both) per individual?",
    "2449647": "The test_Series.parquet files is only a dummy file to quickly check if your code produces any errors before submission.\nAfter submitting, this file will get exchanged with the true hidden test set (~200 individuals with roughly the same length as in the training set) and your code will be rerun against this new file for the final submission.",
    "2449929": "As in other competitions, the test data file is only given as an example of the file format and not useful for model processing. One simple option is to read in the train data as the test data, especially in this competition where the \"ground truth\" is not in the train or test series data files.\n\nFor example, something like this:\n```\n<... your code ...>\n\n# Get and check  the number of rows in the test file\n#        (various ways to do this without loading all the test data)\ntest_rows = <your code here>\n# Is this the real test data?\nif test_rows > 1000:\n    REAL_TEST = True\n    print(\"This is the real test data! Will never see this output :)\")\nelse:\n    # Not the real test data - use train instead.\n    REAL_TEST = False\n    print(\"Use the train data as test.\")\n    # Replace the test filename with the train filename\n    test_file_name = train_file_name\n    <redo any test parquet setup code using the modified test filename>\n \n<... your code ...>\n```\nThen further in the code (at the end near submission) an `if not(REAL_TEST):` block can be run to compare the \"test\" results with the known train events to see how the model is doing.",
    "2452292": "Thanks for the clarification.",
    "2452293": "Thanks for the clarification, and the suggestion.",
    "2465717": "Hi, I'm a rookie here and have no experience with competitions and and how usual test_files look like. Do you have a hunch whether the real test data is longer? If not I have to neglect the broader window around each step when making the prediction.\n\nThanks!",
    "2466962": "You can also check for \n`os.getenv('KAGGLE_IS_COMPETITION_RERUN')`\n\nThis, is True for the submission run and False for the commit. No need to even access and check the test data."
  },
  "source": "meta"
}