{
  "id": 476170,
  "title": "Probably a bug in submission.csv",
  "url": "/competitions/hms-harmful-brain-activity-classification/discussion/476170",
  "author_name": "",
  "post_date": "2024-02-11T11:55:12.497098500Z",
  "votes": 2,
  "comment_count": 2,
  "views": 0,
  "content": "<p>Hi Kagglers!</p>\n<p>During inference i performs some preprocessings steps and saves transformed EEG's to <code>/kaggle/working/eegs</code> directory and everything works as expected. But if i submit my notebook to competition it fails with <code>Submission CSV not found</code>. I found that if <code>eegs</code> folder does not exists, error doesn't occur. You can see 2 different submissions. Version 11 creates <code>eegs</code> folder and fails, but in version 12 <code>eegs</code> removes before submission.csv is created. Also, I double checked which output file was selected. Is this likely a bug or my misunderstanding of how the submission.csv file is handled?  <br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11156269%2F733dac9729684b7e38c75259b23bc58a%2FScreenshot%202024-02-11%20143132.png?generation=1707652032797290&amp;alt=media\"></p>",
  "messages": [
    {
      "id": "2647172",
      "postDate": "02/11/2024 11:55:12",
      "content": "<p>Hi Kagglers!</p>\n<p>During inference i performs some preprocessings steps and saves transformed EEG's to <code>/kaggle/working/eegs</code> directory and everything works as expected. But if i submit my notebook to competition it fails with <code>Submission CSV not found</code>. I found that if <code>eegs</code> folder does not exists, error doesn't occur. You can see 2 different submissions. Version 11 creates <code>eegs</code> folder and fails, but in version 12 <code>eegs</code> removes before submission.csv is created. Also, I double checked which output file was selected. Is this likely a bug or my misunderstanding of how the submission.csv file is handled?  <br>\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11156269%2F733dac9729684b7e38c75259b23bc58a%2FScreenshot%202024-02-11%20143132.png?generation=1707652032797290&amp;alt=media\"></p>",
      "rawMarkdown": "Hi Kagglers!\n\nDuring inference i performs some preprocessings steps and saves transformed EEG's to `/kaggle/working/eegs` directory and everything works as expected. But if i submit my notebook to competition it fails with `Submission CSV not found`. I found that if `eegs` folder does not exists, error doesn't occur. You can see 2 different submissions. Version 11 creates `eegs` folder and fails, but in version 12 `eegs` removes before submission.csv is created. Also, I double checked which output file was selected. Is this likely a bug or my misunderstanding of how the submission.csv file is handled?  \n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11156269%2F733dac9729684b7e38c75259b23bc58a%2FScreenshot%202024-02-11%20143132.png?generation=1707652032797290&alt=media)",
      "votes": null
    },
    {
      "id": "2647225",
      "postDate": "02/11/2024 12:25:24",
      "content": "<p>This is a bug. We must remove all files except submission.csv.<br>\nI saw this solution somewhere, but I don't remember.</p>",
      "rawMarkdown": "This is a bug. We must remove all files except submission.csv.\nI saw this solution somewhere, but I don't remember.",
      "votes": null
    },
    {
      "id": "2654926",
      "postDate": "02/16/2024 15:13:43",
      "content": "<p>Kinda like:</p>\n<pre><code> glob \n f  glob.glob():\n      f.startswith():\n        !rm -rf {f}\n</code></pre>",
      "rawMarkdown": "Kinda like:\n\n```python\nimport glob \nfor f in glob.glob('*'):\n    if not f.startswith('subm'):\n        !rm -rf {f}\n```",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2647225,
      "author_name": "tomooinubushi",
      "author_url": "",
      "post_date": "02/11/2024 12:25:24",
      "content": "<p>This is a bug. We must remove all files except submission.csv.<br>\nI saw this solution somewhere, but I don't remember.</p>",
      "votes": null,
      "replies": [
        {
          "id": 2654926,
          "author_name": "abdulkadirguner",
          "author_url": "",
          "post_date": "02/16/2024 15:13:43",
          "content": "<p>Kinda like:</p>\n<pre><code> glob \n f  glob.glob():\n      f.startswith():\n        !rm -rf {f}\n</code></pre>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2647172": "Hi Kagglers!\n\nDuring inference i performs some preprocessings steps and saves transformed EEG's to `/kaggle/working/eegs` directory and everything works as expected. But if i submit my notebook to competition it fails with `Submission CSV not found`. I found that if `eegs` folder does not exists, error doesn't occur. You can see 2 different submissions. Version 11 creates `eegs` folder and fails, but in version 12 `eegs` removes before submission.csv is created. Also, I double checked which output file was selected. Is this likely a bug or my misunderstanding of how the submission.csv file is handled?  \n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F11156269%2F733dac9729684b7e38c75259b23bc58a%2FScreenshot%202024-02-11%20143132.png?generation=1707652032797290&alt=media)",
    "2647225": "This is a bug. We must remove all files except submission.csv.\nI saw this solution somewhere, but I don't remember.",
    "2654926": "Kinda like:\n\n```python\nimport glob \nfor f in glob.glob('*'):\n    if not f.startswith('subm'):\n        !rm -rf {f}\n```"
  },
  "source": "meta"
}