{
  "id": 401199,
  "title": "I need help with the error: Notebook Threw Exception",
  "url": "/competitions/tlvmc-parkinsons-freezing-gait-prediction/discussion/401199",
  "author_name": "",
  "post_date": "2023-04-12T07:41:35.613709400Z",
  "votes": 1,
  "comment_count": 4,
  "views": 0,
  "content": "<p>Hi,</p>\n<p>I keep on getting Notebook threw exception error, although that my submission adheres to all the requirements.</p>\n<p>The error is the following:</p>\n<p>\"Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips\".</p>\n<p>Can anyone help by checking my notebook?</p>\n<p><a href=\"https://www.kaggle.com/code/samuelchazy/parkinson-freezing-gait\" target=\"_blank\">https://www.kaggle.com/code/samuelchazy/parkinson-freezing-gait</a></p>\n<p>Thanks.<br>\nSamuel</p>",
  "messages": [
    {
      "id": "2219009",
      "postDate": "04/12/2023 07:41:35",
      "content": "<p>Hi,</p>\n<p>I keep on getting Notebook threw exception error, although that my submission adheres to all the requirements.</p>\n<p>The error is the following:</p>\n<p>\"Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips\".</p>\n<p>Can anyone help by checking my notebook?</p>\n<p><a href=\"https://www.kaggle.com/code/samuelchazy/parkinson-freezing-gait\" target=\"_blank\">https://www.kaggle.com/code/samuelchazy/parkinson-freezing-gait</a></p>\n<p>Thanks.<br>\nSamuel</p>",
      "rawMarkdown": "Hi,\n\nI keep on getting Notebook threw exception error, although that my submission adheres to all the requirements.\n\nThe error is the following:\n\n\"Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips\".\n\nCan anyone help by checking my notebook?\n\nhttps://www.kaggle.com/code/samuelchazy/parkinson-freezing-gait\n\nThanks.\nSamuel",
      "votes": null
    },
    {
      "id": "2222573",
      "postDate": "04/15/2023 11:26:13",
      "content": "<p>While I can't find an error that will lead to an exception on first glance, I do noticed that you are NOT reading sample submission. There is a chance that this could actually be an error in submission formatting. That is, not all the Ids given by the files need to be in the <code>submission.csv</code> file. Try to read the <code>sample_submission.csv</code> and align the <code>submission</code> Dataframe that you finally create with it.</p>\n<p>It can be done via a left join. Example: </p>\n<pre><code>\nsample_submission = pd.read_csv(join(BASE_DIR, ))\nsubmission = pd.merge(sample_submission[[]], submission, how=, on=).fillna()\nsubmission.to_csv(, index=, float_format=) \n</code></pre>\n<p>Rounding part is optional.</p>",
      "rawMarkdown": "While I can't find an error that will lead to an exception on first glance, I do noticed that you are NOT reading sample submission. There is a chance that this could actually be an error in submission formatting. That is, not all the Ids given by the files need to be in the `submission.csv` file. Try to read the `sample_submission.csv` and align the `submission` Dataframe that you finally create with it.\n\nIt can be done via a left join. Example: \n```python\n# Only keep Ids in sample_submission\nsample_submission = pd.read_csv(join(BASE_DIR, \"sample_submission.csv\"))\nsubmission = pd.merge(sample_submission[['Id']], submission, how='left', on='Id').fillna(0.0)\nsubmission.to_csv(\"submission.csv\", index=False, float_format='%.5f') # round to 5 decimal places while keeping point notation\n```\nRounding part is optional.",
      "votes": null
    },
    {
      "id": "2222618",
      "postDate": "04/15/2023 12:16:29",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/coderrkj\" target=\"_blank\">@coderrkj</a> for the help. I tried to do the submission file as you indicated but it failed again. I am not sure why and I can't find the issue.</p>",
      "rawMarkdown": "Hi @coderrkj for the help. I tried to do the submission file as you indicated but it failed again. I am not sure why and I can't find the issue.",
      "votes": null
    },
    {
      "id": "2223473",
      "postDate": "04/16/2023 09:49:28",
      "content": "<p>Hi, it seems that there are other hidden files in the tow test folders which are used for the evaluation.<br>\nwe should consider them for the testing the model.<br>\nit can be done by writing a script which read all csv files in the two folders and evaluate the model</p>",
      "rawMarkdown": "Hi, it seems that there are other hidden files in the tow test folders which are used for the evaluation.\nwe should consider them for the testing the model.\nit can be done by writing a script which read all csv files in the two folders and evaluate the model",
      "votes": null
    },
    {
      "id": "2237456",
      "postDate": "04/27/2023 16:29:29",
      "content": "<p>Hi,<br>\nI got the same result. My submission file was generated exactly same as sample_submission.csv with same columns, headers, data format and number of rows.<br>\nFirst successful submission was created when I changed fixed file names and instead iterate dynamicly over csv files in defog and tdcsfog folders inside test directory.<br>\nFor sure folders contain different files when submission part come into place.</p>",
      "rawMarkdown": "Hi,\nI got the same result. My submission file was generated exactly same as sample_submission.csv with same columns, headers, data format and number of rows.\nFirst successful submission was created when I changed fixed file names and instead iterate dynamicly over csv files in defog and tdcsfog folders inside test directory.\nFor sure folders contain different files when submission part come into place.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2222573,
      "author_name": "coderrkj",
      "author_url": "",
      "post_date": "04/15/2023 11:26:13",
      "content": "<p>While I can't find an error that will lead to an exception on first glance, I do noticed that you are NOT reading sample submission. There is a chance that this could actually be an error in submission formatting. That is, not all the Ids given by the files need to be in the <code>submission.csv</code> file. Try to read the <code>sample_submission.csv</code> and align the <code>submission</code> Dataframe that you finally create with it.</p>\n<p>It can be done via a left join. Example: </p>\n<pre><code>\nsample_submission = pd.read_csv(join(BASE_DIR, ))\nsubmission = pd.merge(sample_submission[[]], submission, how=, on=).fillna()\nsubmission.to_csv(, index=, float_format=) \n</code></pre>\n<p>Rounding part is optional.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2222618,
          "author_name": "samuelchazy",
          "author_url": "",
          "post_date": "04/15/2023 12:16:29",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/coderrkj\" target=\"_blank\">@coderrkj</a> for the help. I tried to do the submission file as you indicated but it failed again. I am not sure why and I can't find the issue.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 2223473,
      "author_name": "irajahangari",
      "author_url": "",
      "post_date": "04/16/2023 09:49:28",
      "content": "<p>Hi, it seems that there are other hidden files in the tow test folders which are used for the evaluation.<br>\nwe should consider them for the testing the model.<br>\nit can be done by writing a script which read all csv files in the two folders and evaluate the model</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 2237456,
      "author_name": "rzarno",
      "author_url": "",
      "post_date": "04/27/2023 16:29:29",
      "content": "<p>Hi,<br>\nI got the same result. My submission file was generated exactly same as sample_submission.csv with same columns, headers, data format and number of rows.<br>\nFirst successful submission was created when I changed fixed file names and instead iterate dynamicly over csv files in defog and tdcsfog folders inside test directory.<br>\nFor sure folders contain different files when submission part come into place.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2219009": "Hi,\n\nI keep on getting Notebook threw exception error, although that my submission adheres to all the requirements.\n\nThe error is the following:\n\n\"Your notebook hit an unhandled error while rerunning your code. Note that the hidden dataset can be larger/smaller/different than the public dataset See more debugging tips\".\n\nCan anyone help by checking my notebook?\n\nhttps://www.kaggle.com/code/samuelchazy/parkinson-freezing-gait\n\nThanks.\nSamuel",
    "2222573": "While I can't find an error that will lead to an exception on first glance, I do noticed that you are NOT reading sample submission. There is a chance that this could actually be an error in submission formatting. That is, not all the Ids given by the files need to be in the `submission.csv` file. Try to read the `sample_submission.csv` and align the `submission` Dataframe that you finally create with it.\n\nIt can be done via a left join. Example: \n```python\n# Only keep Ids in sample_submission\nsample_submission = pd.read_csv(join(BASE_DIR, \"sample_submission.csv\"))\nsubmission = pd.merge(sample_submission[['Id']], submission, how='left', on='Id').fillna(0.0)\nsubmission.to_csv(\"submission.csv\", index=False, float_format='%.5f') # round to 5 decimal places while keeping point notation\n```\nRounding part is optional.",
    "2222618": "Hi @coderrkj for the help. I tried to do the submission file as you indicated but it failed again. I am not sure why and I can't find the issue.",
    "2223473": "Hi, it seems that there are other hidden files in the tow test folders which are used for the evaluation.\nwe should consider them for the testing the model.\nit can be done by writing a script which read all csv files in the two folders and evaluate the model",
    "2237456": "Hi,\nI got the same result. My submission file was generated exactly same as sample_submission.csv with same columns, headers, data format and number of rows.\nFirst successful submission was created when I changed fixed file names and instead iterate dynamicly over csv files in defog and tdcsfog folders inside test directory.\nFor sure folders contain different files when submission part come into place."
  },
  "source": "meta"
}