{
  "id": 337522,
  "title": "Why did my submission fail",
  "url": "/competitions/mayo-clinic-strip-ai/discussion/337522",
  "author_name": "Saurabh Sawhney",
  "post_date": "2022-07-16T13:21:56.081000",
  "votes": 0,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hi all, new kid here.</p>\n<p>I made a dumb model submission just to check the process. However, the submission failed and I don't have any information about why this happened. Any help on the source of error and how to rectify it is much appreciated.</p>\n<p>Thanks.</p>\n<p>link to the notebook: <a href=\"https://www.kaggle.com/saurabhsawhney/initial-impressions-and-dumbmodel-submission\" target=\"_blank\">https://www.kaggle.com/saurabhsawhney/initial-impressions-and-dumbmodel-submission</a></p>\n<p>Update: Now two submissions in 2 days have failed, and I am clueless. I went ahead and made a similar dumb model prediction for the Spaceship Titanic competition, and that seems to work well. So back to the head-scratching for now.</p>\n<p>Update: The problem seems to have been solved. I will post a basic notebook about it in a few hours. Thanks everyone.</p>\n<p>Update: Here it is - the notebook<br>\n<a href=\"https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission\" target=\"_blank\">https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission</a></p>",
  "messages": [
    {
      "id": 1857933,
      "postDate": "2022-07-16T14:17:39.010Z",
      "content": "<p>Hi Saurabh, you need to specify the submission path: <code>/kaggle/working/</code></p>\n<p>you are currently doing:</p>\n<p><code>submission.to_csv(\"submission.csv\", index=False)</code> </p>\n<p>The correct is: <br>\n<code>submission.to_csv(\"/kaggle/working/submission.csv\", index=False)</code></p>",
      "rawMarkdown": "Hi Saurabh, you need to specify the submission path: `/kaggle/working/`\n\nyou are currently doing:\n\n`submission.to_csv(\"submission.csv\", index=False)` \n\nThe correct is: \n`submission.to_csv(\"/kaggle/working/submission.csv\", index=False)`",
      "votes": 1
    },
    {
      "id": 1858785,
      "postDate": "2022-07-17T07:52:38.863Z",
      "content": "<p><a href=\"https://www.kaggle.com/ceruttivini\" target=\"_blank\">@ceruttivini</a> well, the changed file still produced an error and I can't figure it out yet. I've checked that the run produces the submission.csv (in both version 3 and 4, actually), and the submission file itself appears to be ok. Any other thoughts on this will be much appreciated.</p>",
      "rawMarkdown": "@ceruttivini well, the changed file still produced an error and I can't figure it out yet. I've checked that the run produces the submission.csv (in both version 3 and 4, actually), and the submission file itself appears to be ok. Any other thoughts on this will be much appreciated.",
      "replies": [
        {
          "id": 1859371,
          "postDate": "2022-07-17T15:15:00.413Z",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/saurabhsawhney\" target=\"_blank\">@saurabhsawhney</a>, in <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">code contest debug page</a> cite the problem:<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3484305%2F0e8d763ad4473fdaff7a4bb3265d3f1e%2Ferror.png?generation=1658070683089310&amp;alt=media\" alt=\"\"></p>\n<p>If we analyze the dataset it has a folder with a specific test dataset, it needs to use this dataset as a submission and not others.<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3484305%2F954770a60a92c3ab413723a16928e9a3%2Ferror_2.png?generation=1658070890515226&amp;alt=media\" alt=\"\"></p>",
          "rawMarkdown": "Hi @saurabhsawhney, in [code contest debug page]( https://www.kaggle.com/code-competition-debugging) cite the problem:\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3484305%2F0e8d763ad4473fdaff7a4bb3265d3f1e%2Ferror.png?generation=1658070683089310&alt=media)\n\nIf we analyze the dataset it has a folder with a specific test dataset, it needs to use this dataset as a submission and not others.\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3484305%2F954770a60a92c3ab413723a16928e9a3%2Ferror_2.png?generation=1658070890515226&alt=media)\n"
        },
        {
          "id": 1860403,
          "postDate": "2022-07-18T09:57:08.900Z",
          "content": "<p><a href=\"https://www.kaggle.com/ceruttivini\" target=\"_blank\">@ceruttivini</a> <br>\nI think I found the issue. Will be sure after one more day (another submission). I've detailed it <a href=\"https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission\" target=\"_blank\">here</a>.</p>",
          "rawMarkdown": "@ceruttivini \nI think I found the issue. Will be sure after one more day (another submission). I've detailed it [here](https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission)."
        }
      ]
    },
    {
      "id": 1857886,
      "postDate": "2022-07-16T13:21:56.083Z",
      "content": "<p>Hi all, new kid here.</p>\n<p>I made a dumb model submission just to check the process. However, the submission failed and I don't have any information about why this happened. Any help on the source of error and how to rectify it is much appreciated.</p>\n<p>Thanks.</p>\n<p>link to the notebook: <a href=\"https://www.kaggle.com/saurabhsawhney/initial-impressions-and-dumbmodel-submission\" target=\"_blank\">https://www.kaggle.com/saurabhsawhney/initial-impressions-and-dumbmodel-submission</a></p>\n<p>Update: Now two submissions in 2 days have failed, and I am clueless. I went ahead and made a similar dumb model prediction for the Spaceship Titanic competition, and that seems to work well. So back to the head-scratching for now.</p>\n<p>Update: The problem seems to have been solved. I will post a basic notebook about it in a few hours. Thanks everyone.</p>\n<p>Update: Here it is - the notebook<br>\n<a href=\"https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission\" target=\"_blank\">https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission</a></p>",
      "rawMarkdown": "Hi all, new kid here.\n\nI made a dumb model submission just to check the process. However, the submission failed and I don't have any information about why this happened. Any help on the source of error and how to rectify it is much appreciated.\n\nThanks.\n\nlink to the notebook: https://www.kaggle.com/saurabhsawhney/initial-impressions-and-dumbmodel-submission\n\n\nUpdate: Now two submissions in 2 days have failed, and I am clueless. I went ahead and made a similar dumb model prediction for the Spaceship Titanic competition, and that seems to work well. So back to the head-scratching for now.\n\nUpdate: The problem seems to have been solved. I will post a basic notebook about it in a few hours. Thanks everyone.\n\nUpdate: Here it is - the notebook\nhttps://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission\n"
    },
    {
      "id": 1857992,
      "postDate": "2022-07-16T15:12:57.477Z",
      "content": "<p><a href=\"https://www.kaggle.com/ceruttivini\" target=\"_blank\">@ceruttivini</a> </p>\n<p>Thank you so much.</p>",
      "rawMarkdown": "@ceruttivini \n\nThank you so much."
    }
  ],
  "comments": [
    {
      "id": 1857933,
      "author_name": "Vinicius Duzac Cerutti",
      "author_url": "",
      "post_date": "2022-07-16T14:17:39.010000",
      "content": "<p>Hi Saurabh, you need to specify the submission path: <code>/kaggle/working/</code></p>\n<p>you are currently doing:</p>\n<p><code>submission.to_csv(\"submission.csv\", index=False)</code> </p>\n<p>The correct is: <br>\n<code>submission.to_csv(\"/kaggle/working/submission.csv\", index=False)</code></p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 1858785,
      "author_name": "Saurabh Sawhney",
      "author_url": "",
      "post_date": "2022-07-17T07:52:38.863000",
      "content": "<p><a href=\"https://www.kaggle.com/ceruttivini\" target=\"_blank\">@ceruttivini</a> well, the changed file still produced an error and I can't figure it out yet. I've checked that the run produces the submission.csv (in both version 3 and 4, actually), and the submission file itself appears to be ok. Any other thoughts on this will be much appreciated.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1859371,
          "author_name": "Vinicius Duzac Cerutti",
          "author_url": "",
          "post_date": "2022-07-17T15:15:00.413000",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/saurabhsawhney\" target=\"_blank\">@saurabhsawhney</a>, in <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">code contest debug page</a> cite the problem:<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3484305%2F0e8d763ad4473fdaff7a4bb3265d3f1e%2Ferror.png?generation=1658070683089310&amp;alt=media\" alt=\"\"></p>\n<p>If we analyze the dataset it has a folder with a specific test dataset, it needs to use this dataset as a submission and not others.<br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F3484305%2F954770a60a92c3ab413723a16928e9a3%2Ferror_2.png?generation=1658070890515226&amp;alt=media\" alt=\"\"></p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1860403,
          "author_name": "Saurabh Sawhney",
          "author_url": "",
          "post_date": "2022-07-18T09:57:08.900000",
          "content": "<p><a href=\"https://www.kaggle.com/ceruttivini\" target=\"_blank\">@ceruttivini</a> <br>\nI think I found the issue. Will be sure after one more day (another submission). I've detailed it <a href=\"https://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission\" target=\"_blank\">here</a>.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1857992,
      "author_name": "Saurabh Sawhney",
      "author_url": "",
      "post_date": "2022-07-16T15:12:57.477000",
      "content": "<p><a href=\"https://www.kaggle.com/ceruttivini\" target=\"_blank\">@ceruttivini</a> </p>\n<p>Thank you so much.</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1857933": "Hi Saurabh, you need to specify the submission path: `/kaggle/working/`\n\nyou are currently doing:\n\n`submission.to_csv(\"submission.csv\", index=False)` \n\nThe correct is: \n`submission.to_csv(\"/kaggle/working/submission.csv\", index=False)`",
    "1858785": "@ceruttivini well, the changed file still produced an error and I can't figure it out yet. I've checked that the run produces the submission.csv (in both version 3 and 4, actually), and the submission file itself appears to be ok. Any other thoughts on this will be much appreciated.",
    "1857886": "Hi all, new kid here.\n\nI made a dumb model submission just to check the process. However, the submission failed and I don't have any information about why this happened. Any help on the source of error and how to rectify it is much appreciated.\n\nThanks.\n\nlink to the notebook: https://www.kaggle.com/saurabhsawhney/initial-impressions-and-dumbmodel-submission\n\n\nUpdate: Now two submissions in 2 days have failed, and I am clueless. I went ahead and made a similar dumb model prediction for the Spaceship Titanic competition, and that seems to work well. So back to the head-scratching for now.\n\nUpdate: The problem seems to have been solved. I will post a basic notebook about it in a few hours. Thanks everyone.\n\nUpdate: Here it is - the notebook\nhttps://www.kaggle.com/code/saurabhsawhney/mayo-beginners-how-to-make-a-submission\n",
    "1857992": "@ceruttivini \n\nThank you so much."
  }
}