{
  "id": 584268,
  "title": "Unable to make a submission due to \"Notebook threw an exception\" error",
  "url": "/competitions/cmi-detect-behavior-with-sensor-data/discussion/584268",
  "author_name": "",
  "post_date": "2025-06-12T12:58:07.947304500Z",
  "votes": 1,
  "comment_count": 11,
  "views": 0,
  "content": "<p>Hi, <br>\nI am losing my mind trying to make a submission but to no avail. Is there anyway I can debug what is wrong with my notebook? I checked out the parquet file that gets generated from the test set and it looks totally fine. Is there anything else I can do? </p>",
  "messages": [
    {
      "id": "3222733",
      "postDate": "06/12/2025 12:58:07",
      "content": "<p>Hi, <br>\nI am losing my mind trying to make a submission but to no avail. Is there anyway I can debug what is wrong with my notebook? I checked out the parquet file that gets generated from the test set and it looks totally fine. Is there anything else I can do? </p>",
      "rawMarkdown": "Hi, \nI am losing my mind trying to make a submission but to no avail. Is there anyway I can debug what is wrong with my notebook? I checked out the parquet file that gets generated from the test set and it looks totally fine. Is there anything else I can do?",
      "votes": null
    },
    {
      "id": "3222734",
      "postDate": "06/12/2025 12:59:44",
      "content": "<p>This is it <a href=\"https://www.kaggle.com/code/moetasimrady/fork-of-cmi-2025-first-submission\" target=\"_blank\">https://www.kaggle.com/code/moetasimrady/fork-of-cmi-2025-first-submission</a></p>",
      "rawMarkdown": "This is it https://www.kaggle.com/code/moetasimrady/fork-of-cmi-2025-first-submission",
      "votes": null
    },
    {
      "id": "3222989",
      "postDate": "06/12/2025 18:16:50",
      "content": "<p>Kaggle Notebook is down :( . I dont know if i am the one facing the problem or is it face by someone else</p>",
      "rawMarkdown": "Kaggle Notebook is down :( . I dont know if i am the one facing the problem or is it face by someone else",
      "votes": null
    },
    {
      "id": "3223397",
      "postDate": "06/13/2025 08:41:19",
      "content": "<p><a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> Can you please confirm?</p>",
      "rawMarkdown": "sohier Can you please confirm?",
      "votes": null
    },
    {
      "id": "3223857",
      "postDate": "06/14/2025 02:17:17",
      "content": "<p>This could be a result of not handling missing data in the hidden test case. One sanity check could be to run your submission script on the training data. </p>",
      "rawMarkdown": "This could be a result of not handling missing data in the hidden test case. One sanity check could be to run your submission script on the training data.",
      "votes": null
    },
    {
      "id": "3224655",
      "postDate": "06/15/2025 09:14:23",
      "content": "<p>Is it possible for some columns to not be included in the test set?</p>",
      "rawMarkdown": "Is it possible for some columns to not be included in the test set?",
      "votes": null
    },
    {
      "id": "3225659",
      "postDate": "06/16/2025 17:33:58",
      "content": "<p>It is possible that some null values may exist in the test set; however, the columns will remain identical to those in the provided test.csv file.</p>",
      "rawMarkdown": "It is possible that some null values may exist in the test set; however, the columns will remain identical to those in the provided test.csv file.",
      "votes": null
    },
    {
      "id": "3225660",
      "postDate": "06/16/2025 17:34:39",
      "content": "<p>Can't see it now😂 Problem solved?</p>",
      "rawMarkdown": "Can't see it now😂 Problem solved?",
      "votes": null
    },
    {
      "id": "3225710",
      "postDate": "06/16/2025 19:03:04",
      "content": "<p>I noticed a noob mistake, so I made it private out of shame, but actually after I fixed the noob mistake, it still  won't submit, would very much appreciate taking a look 😁</p>",
      "rawMarkdown": "I noticed a noob mistake, so I made it private out of shame, but actually after I fixed the noob mistake, it still  won't submit, would very much appreciate taking a look 😁",
      "votes": null
    },
    {
      "id": "3225828",
      "postDate": "06/16/2025 22:37:20",
      "content": "<p>You may want to check the DataFrame alignment. If <code>penultimate_df</code> or <code>cleaned_df</code> do not have perfectly matching keys in <code>grouping_col</code>, the merge could drop rows or produce unintended duplicates, especially after using reset_index().</p>\n<p>For <code>vanilla_categorical_procs</code> and <code>vanilla_quant_procs</code>, if the test data contains unseen categories or different numeric ranges compared to the training data, the transformations may fail or yield inconsistent results.</p>\n<p>Additionally, please double-check that the final output type is a string. It may also be beneficial to load the models and encoders before calling the <code>predict</code> function for improved efficiency.</p>\n<p>You may debug using the below code after your predict function:</p>\n<p><code>sequence_id = 'SEQ_000079' # 'SEQ_000033'</code></p>\n<p><code>test_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train.csv')</code><br>\n<code>test_demo_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train_demographics.csv')</code></p>\n<p><code>test_sequence = test_df.filter(pl.col('sequence_id') == sequence_id)</code></p>\n<p><code>subject = test_sequence['subject'].to_list()[0]</code><br>\n<code>test_demo = test_demo_df.filter(pl.col('subject') == subject)</code></p>\n<p><code>prediction = predict(test_sequence, test_demo)</code><br>\n<code>print(f\"sequence id: {sequence_id} | subject: {subject}\\nPrediction: {prediction}\")</code></p>",
      "rawMarkdown": "You may want to check the DataFrame alignment. If `penultimate_df` or `cleaned_df` do not have perfectly matching keys in `grouping_col`, the merge could drop rows or produce unintended duplicates, especially after using reset_index().\n\nFor `vanilla_categorical_procs` and `vanilla_quant_procs`, if the test data contains unseen categories or different numeric ranges compared to the training data, the transformations may fail or yield inconsistent results.\n\nAdditionally, please double-check that the final output type is a string. It may also be beneficial to load the models and encoders before calling the `predict` function for improved efficiency.\n\nYou may debug using the below code after your predict function:\n\n`sequence_id = 'SEQ_000079' # 'SEQ_000033'`\n\n`test_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train.csv')`\n`test_demo_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train_demographics.csv')`\n\n`test_sequence = test_df.filter(pl.col('sequence_id') == sequence_id)`\n\n`subject = test_sequence['subject'].to_list()[0]`\n`test_demo = test_demo_df.filter(pl.col('subject') == subject)`\n\n`prediction = predict(test_sequence, test_demo)`\n`print(f\"sequence id: {sequence_id} | subject: {subject}\\nPrediction: {prediction}\")`",
      "votes": null
    },
    {
      "id": "3226799",
      "postDate": "06/18/2025 05:23:21",
      "content": "<p>see Below</p>\n<p>Expect approximately 3,500 sequences in the hidden test set.<br>\n<strong>Half of the hidden-test sequences are recorded with IMU only; the thermopile (thm_) and time-of-flight (tof__v*) columns are still present but contain null values for those sequences</strong>.<br>\nThis will allow us to determine whether adding the time-of-flight and thermopile sensors improves our ability to detect BFRBs. Note also that there is known sensor communication failure in this dataset, resulting in missing data from some sensors in some sequences.</p>",
      "rawMarkdown": "see Below\n\nExpect approximately 3,500 sequences in the hidden test set.\n**Half of the hidden-test sequences are recorded with IMU only; the thermopile (thm_) and time-of-flight (tof__v*) columns are still present but contain null values for those sequences**.\nThis will allow us to determine whether adding the time-of-flight and thermopile sensors improves our ability to detect BFRBs. Note also that there is known sensor communication failure in this dataset, resulting in missing data from some sensors in some sequences.",
      "votes": null
    },
    {
      "id": "3228684",
      "postDate": "06/20/2025 12:21:41",
      "content": "<p>Solved! It apprears that I only needed a single (df.fillna(0)) statement to handle NaN values</p>",
      "rawMarkdown": "Solved! It apprears that I only needed a single (df.fillna(0)) statement to handle NaN values",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3222734,
      "author_name": "moetasimrady",
      "author_url": "",
      "post_date": "06/12/2025 12:59:44",
      "content": "<p>This is it <a href=\"https://www.kaggle.com/code/moetasimrady/fork-of-cmi-2025-first-submission\" target=\"_blank\">https://www.kaggle.com/code/moetasimrady/fork-of-cmi-2025-first-submission</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 3225660,
          "author_name": "hearttt",
          "author_url": "",
          "post_date": "06/16/2025 17:34:39",
          "content": "<p>Can't see it now😂 Problem solved?</p>",
          "votes": null,
          "replies": [
            {
              "id": 3225710,
              "author_name": "moetasimrady",
              "author_url": "",
              "post_date": "06/16/2025 19:03:04",
              "content": "<p>I noticed a noob mistake, so I made it private out of shame, but actually after I fixed the noob mistake, it still  won't submit, would very much appreciate taking a look 😁</p>",
              "votes": null,
              "replies": [
                {
                  "id": 3225828,
                  "author_name": "hearttt",
                  "author_url": "",
                  "post_date": "06/16/2025 22:37:20",
                  "content": "<p>You may want to check the DataFrame alignment. If <code>penultimate_df</code> or <code>cleaned_df</code> do not have perfectly matching keys in <code>grouping_col</code>, the merge could drop rows or produce unintended duplicates, especially after using reset_index().</p>\n<p>For <code>vanilla_categorical_procs</code> and <code>vanilla_quant_procs</code>, if the test data contains unseen categories or different numeric ranges compared to the training data, the transformations may fail or yield inconsistent results.</p>\n<p>Additionally, please double-check that the final output type is a string. It may also be beneficial to load the models and encoders before calling the <code>predict</code> function for improved efficiency.</p>\n<p>You may debug using the below code after your predict function:</p>\n<p><code>sequence_id = 'SEQ_000079' # 'SEQ_000033'</code></p>\n<p><code>test_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train.csv')</code><br>\n<code>test_demo_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train_demographics.csv')</code></p>\n<p><code>test_sequence = test_df.filter(pl.col('sequence_id') == sequence_id)</code></p>\n<p><code>subject = test_sequence['subject'].to_list()[0]</code><br>\n<code>test_demo = test_demo_df.filter(pl.col('subject') == subject)</code></p>\n<p><code>prediction = predict(test_sequence, test_demo)</code><br>\n<code>print(f\"sequence id: {sequence_id} | subject: {subject}\\nPrediction: {prediction}\")</code></p>",
                  "votes": null,
                  "replies": []
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "id": 3222989,
      "author_name": "aman1391",
      "author_url": "",
      "post_date": "06/12/2025 18:16:50",
      "content": "<p>Kaggle Notebook is down :( . I dont know if i am the one facing the problem or is it face by someone else</p>",
      "votes": null,
      "replies": [
        {
          "id": 3223397,
          "author_name": "moetasimrady",
          "author_url": "",
          "post_date": "06/13/2025 08:41:19",
          "content": "<p><a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> Can you please confirm?</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 3223857,
      "author_name": "pascalyamlome",
      "author_url": "",
      "post_date": "06/14/2025 02:17:17",
      "content": "<p>This could be a result of not handling missing data in the hidden test case. One sanity check could be to run your submission script on the training data. </p>",
      "votes": null,
      "replies": [
        {
          "id": 3224655,
          "author_name": "moetasimrady",
          "author_url": "",
          "post_date": "06/15/2025 09:14:23",
          "content": "<p>Is it possible for some columns to not be included in the test set?</p>",
          "votes": null,
          "replies": [
            {
              "id": 3225659,
              "author_name": "hearttt",
              "author_url": "",
              "post_date": "06/16/2025 17:33:58",
              "content": "<p>It is possible that some null values may exist in the test set; however, the columns will remain identical to those in the provided test.csv file.</p>",
              "votes": null,
              "replies": []
            },
            {
              "id": 3226799,
              "author_name": "pascalyamlome",
              "author_url": "",
              "post_date": "06/18/2025 05:23:21",
              "content": "<p>see Below</p>\n<p>Expect approximately 3,500 sequences in the hidden test set.<br>\n<strong>Half of the hidden-test sequences are recorded with IMU only; the thermopile (thm_) and time-of-flight (tof__v*) columns are still present but contain null values for those sequences</strong>.<br>\nThis will allow us to determine whether adding the time-of-flight and thermopile sensors improves our ability to detect BFRBs. Note also that there is known sensor communication failure in this dataset, resulting in missing data from some sensors in some sequences.</p>",
              "votes": null,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 3228684,
      "author_name": "moetasimrady",
      "author_url": "",
      "post_date": "06/20/2025 12:21:41",
      "content": "<p>Solved! It apprears that I only needed a single (df.fillna(0)) statement to handle NaN values</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3222733": "Hi, \nI am losing my mind trying to make a submission but to no avail. Is there anyway I can debug what is wrong with my notebook? I checked out the parquet file that gets generated from the test set and it looks totally fine. Is there anything else I can do?",
    "3222734": "This is it https://www.kaggle.com/code/moetasimrady/fork-of-cmi-2025-first-submission",
    "3222989": "Kaggle Notebook is down :( . I dont know if i am the one facing the problem or is it face by someone else",
    "3223397": "sohier Can you please confirm?",
    "3223857": "This could be a result of not handling missing data in the hidden test case. One sanity check could be to run your submission script on the training data.",
    "3224655": "Is it possible for some columns to not be included in the test set?",
    "3225659": "It is possible that some null values may exist in the test set; however, the columns will remain identical to those in the provided test.csv file.",
    "3225660": "Can't see it now😂 Problem solved?",
    "3225710": "I noticed a noob mistake, so I made it private out of shame, but actually after I fixed the noob mistake, it still  won't submit, would very much appreciate taking a look 😁",
    "3225828": "You may want to check the DataFrame alignment. If `penultimate_df` or `cleaned_df` do not have perfectly matching keys in `grouping_col`, the merge could drop rows or produce unintended duplicates, especially after using reset_index().\n\nFor `vanilla_categorical_procs` and `vanilla_quant_procs`, if the test data contains unseen categories or different numeric ranges compared to the training data, the transformations may fail or yield inconsistent results.\n\nAdditionally, please double-check that the final output type is a string. It may also be beneficial to load the models and encoders before calling the `predict` function for improved efficiency.\n\nYou may debug using the below code after your predict function:\n\n`sequence_id = 'SEQ_000079' # 'SEQ_000033'`\n\n`test_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train.csv')`\n`test_demo_df = pl.read_csv('/kaggle/input/cmi-detect-behavior-with-sensor-data/train_demographics.csv')`\n\n`test_sequence = test_df.filter(pl.col('sequence_id') == sequence_id)`\n\n`subject = test_sequence['subject'].to_list()[0]`\n`test_demo = test_demo_df.filter(pl.col('subject') == subject)`\n\n`prediction = predict(test_sequence, test_demo)`\n`print(f\"sequence id: {sequence_id} | subject: {subject}\\nPrediction: {prediction}\")`",
    "3226799": "see Below\n\nExpect approximately 3,500 sequences in the hidden test set.\n**Half of the hidden-test sequences are recorded with IMU only; the thermopile (thm_) and time-of-flight (tof__v*) columns are still present but contain null values for those sequences**.\nThis will allow us to determine whether adding the time-of-flight and thermopile sensors improves our ability to detect BFRBs. Note also that there is known sensor communication failure in this dataset, resulting in missing data from some sensors in some sequences.",
    "3228684": "Solved! It apprears that I only needed a single (df.fillna(0)) statement to handle NaN values"
  },
  "source": "meta"
}