{
  "id": 478102,
  "title": "As a beginner at Kaggle, I don't know how to approach this problem. ",
  "url": "/competitions/hms-harmful-brain-activity-classification/discussion/478102",
  "author_name": "gaoyang",
  "post_date": "2024-02-19T06:51:45.280000",
  "votes": 1,
  "comment_count": 11,
  "views": 0,
  "content": "<p>As a beginner at Kaggle, I don't know how to approach this problem.<br>\nThe test generated the submission.csv file normally, but the submission timed out. <br>\nThe code did not report any errors, The test generated the submission.csv file normally, but the submission timed out.<br>\nThe submission.csv file is located in the '/kaggle/working' directory.<br>\nUsing 1060 takes an average of 53.9ms per image.</p>\n<h1>-----------------------------------------</h1>\n<p>The code evaluated in the following test can be evaluated successfully, but my evaluation code is not. Can someone tell me why?</p>\n<pre><code> pandas  pd\n\ntrain = pd.read_csv()\nEEG_IDS = train.eeg_id.unique()\n\n()\n\n\n\nsample_submission_str =  + \n\n i, eeg_id  (EEG_IDS):\n    (i, eeg_id)\n    sample_submission_str = sample_submission_str + (eeg_id) +  + \n\nsave_path = \n (save_path, )  txt_save:\n    txt_save.write(sample_submission_str)\n(sample_submission_str)\n</code></pre>",
  "messages": [
    {
      "id": 2658397,
      "postDate": "2024-02-19T06:51:45.280Z",
      "content": "<p>As a beginner at Kaggle, I don't know how to approach this problem.<br>\nThe test generated the submission.csv file normally, but the submission timed out. <br>\nThe code did not report any errors, The test generated the submission.csv file normally, but the submission timed out.<br>\nThe submission.csv file is located in the '/kaggle/working' directory.<br>\nUsing 1060 takes an average of 53.9ms per image.</p>\n<h1>-----------------------------------------</h1>\n<p>The code evaluated in the following test can be evaluated successfully, but my evaluation code is not. Can someone tell me why?</p>\n<pre><code> pandas  pd\n\ntrain = pd.read_csv()\nEEG_IDS = train.eeg_id.unique()\n\n()\n\n\n\nsample_submission_str =  + \n\n i, eeg_id  (EEG_IDS):\n    (i, eeg_id)\n    sample_submission_str = sample_submission_str + (eeg_id) +  + \n\nsave_path = \n (save_path, )  txt_save:\n    txt_save.write(sample_submission_str)\n(sample_submission_str)\n</code></pre>",
      "rawMarkdown": "As a beginner at Kaggle, I don't know how to approach this problem.\nThe test generated the submission.csv file normally, but the submission timed out. \nThe code did not report any errors, The test generated the submission.csv file normally, but the submission timed out.\nThe submission.csv file is located in the '/kaggle/working' directory.\nUsing 1060 takes an average of 53.9ms per image.\n\n\n# -----------------------------------------\nThe code evaluated in the following test can be evaluated successfully, but my evaluation code is not. Can someone tell me why?\n```python\nimport pandas as pd\n\ntrain = pd.read_csv(f'/kaggle/input/hms-harmful-brain-activity-classification/test.csv')\nEEG_IDS = train.eeg_id.unique()\n\nprint('------------------------------------')\n\n# 0.166666667,0.166666667,0.166666667,0.166666667,0.166666667,0.166666667\n\nsample_submission_str = 'eeg_id,seizure_vote,lpd_vote,gpd_vote,lrda_vote,grda_vote,other_vote' + '\\n'\n\nfor i, eeg_id in enumerate(EEG_IDS):\n    print(i, eeg_id)\n    sample_submission_str = sample_submission_str + str(eeg_id) + ',0.166666667,0.166666667,0.166666667,0.166666667,0.166666667,0.166666667' + '\\n'\n\nsave_path = '/kaggle/working/submission.csv'\nwith open(save_path, 'w') as txt_save:\n    txt_save.write(sample_submission_str)\nprint(sample_submission_str)\n```",
      "votes": 1
    },
    {
      "id": 2658770,
      "postDate": "2024-02-19T11:45:54.830Z",
      "content": "<p>Are you using GPU? Kaggle notebooks use CPU by default.</p>",
      "rawMarkdown": "Are you using GPU? Kaggle notebooks use CPU by default.",
      "replies": [
        {
          "id": 2658849,
          "postDate": "2024-02-19T12:57:13.247Z",
          "content": "<p>The GPU P100 I used during the test, shut down the Internet.<br>\nSubmit through the Submit button under Submit to competition.<br>\nIs there something wrong with my operation?<br>\nAs a beginner at Kaggle, I don't quite understand.</p>\n<p>how long does it take for you to evaluate once?</p>\n<p>Where can I find the staff?</p>",
          "rawMarkdown": "The GPU P100 I used during the test, shut down the Internet.\nSubmit through the Submit button under Submit to competition.\nIs there something wrong with my operation?\nAs a beginner at Kaggle, I don't quite understand.\n\nhow long does it take for you to evaluate once?\n\nWhere can I find the staff?",
          "replies": [
            {
              "id": 2658854,
              "postDate": "2024-02-19T12:58:37.690Z",
              "content": "<p>My submission takes approximately 10 minutes to finish. There is something wrong with your code then.</p>",
              "rawMarkdown": "My submission takes approximately 10 minutes to finish. There is something wrong with your code then."
            },
            {
              "id": 2658866,
              "postDate": "2024-02-19T13:14:26.573Z",
              "rawMarkdown": "",
              "isDeleted": true
            },
            {
              "id": 2658873,
              "postDate": "2024-02-19T13:20:41.590Z",
              "rawMarkdown": "",
              "isDeleted": true
            },
            {
              "id": 2658874,
              "postDate": "2024-02-19T13:21:08.573Z",
              "rawMarkdown": "",
              "isDeleted": true
            }
          ]
        },
        {
          "id": 2658891,
          "postDate": "2024-02-19T13:30:56.593Z",
          "content": "<p>When debugging code online for testing, the submission.csv file can be generated normally, and the content is also normal. The submission.csv file is located in the '/kaggle/working' directory.<br>\nLoad the model as a dataset into '/kaggle/input', copy the model into '/kaggle/working', and use it.<br>\nCan we train the model offline and submit it online?<br>\nIs there an issue with the position of submission.csv? Or something else?</p>",
          "rawMarkdown": "When debugging code online for testing, the submission.csv file can be generated normally, and the content is also normal. The submission.csv file is located in the '/kaggle/working' directory.\nLoad the model as a dataset into '/kaggle/input', copy the model into '/kaggle/working', and use it.\nCan we train the model offline and submit it online?\nIs there an issue with the position of submission.csv? Or something else?\n"
        }
      ]
    },
    {
      "id": 2658665,
      "postDate": "2024-02-19T10:18:38.140Z",
      "content": "<p>I don't know the much of your code, but I pretty expect that while producing and scoring submisson file, the notebook's ram has ran out.<br>\ntry to use garbage collection with non important file. like this code</p>\n<h1>FREE MEMORY</h1>\n<p>import os, gc<br>\nos.environ[\"CUDA_VISIBLE_DEVICES\"]=\"0,1\"</p>\n<p>del all_eegs, spectrograms, data<br>\ngc.collect()</p>",
      "rawMarkdown": "I don't know the much of your code, but I pretty expect that while producing and scoring submisson file, the notebook's ram has ran out.\ntry to use garbage collection with non important file. like this code\n\n# FREE MEMORY\n\nimport os, gc\nos.environ[\"CUDA_VISIBLE_DEVICES\"]=\"0,1\"\n\ndel all_eegs, spectrograms, data\ngc.collect()",
      "replies": [
        {
          "id": 2658674,
          "postDate": "2024-02-19T10:30:58.183Z",
          "content": "<p>Thank you, I'll give it a try.</p>",
          "rawMarkdown": "Thank you, I'll give it a try."
        },
        {
          "id": 2658732,
          "postDate": "2024-02-19T11:14:42.683Z",
          "content": "<p>By the way, how long does it take for you to evaluate once.</p>",
          "rawMarkdown": "By the way, how long does it take for you to evaluate once."
        }
      ]
    },
    {
      "id": 2658848,
      "postDate": "2024-02-19T12:56:44.530Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2658770,
      "author_name": "Gunes Evitan",
      "author_url": "",
      "post_date": "2024-02-19T11:45:54.830000",
      "content": "<p>Are you using GPU? Kaggle notebooks use CPU by default.</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2658849,
          "author_name": "gaoyang",
          "author_url": "",
          "post_date": "2024-02-19T12:57:13.247000",
          "content": "<p>The GPU P100 I used during the test, shut down the Internet.<br>\nSubmit through the Submit button under Submit to competition.<br>\nIs there something wrong with my operation?<br>\nAs a beginner at Kaggle, I don't quite understand.</p>\n<p>how long does it take for you to evaluate once?</p>\n<p>Where can I find the staff?</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2658854,
              "author_name": "Gunes Evitan",
              "author_url": "",
              "post_date": "2024-02-19T12:58:37.690000",
              "content": "<p>My submission takes approximately 10 minutes to finish. There is something wrong with your code then.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2658866,
              "author_name": "",
              "author_url": "",
              "post_date": "2024-02-19T13:14:26.573000",
              "content": "",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2658873,
              "author_name": "",
              "author_url": "",
              "post_date": "2024-02-19T13:20:41.590000",
              "content": "",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2658874,
              "author_name": "",
              "author_url": "",
              "post_date": "2024-02-19T13:21:08.573000",
              "content": "",
              "votes": 0,
              "replies": []
            }
          ]
        },
        {
          "id": 2658891,
          "author_name": "gaoyang",
          "author_url": "",
          "post_date": "2024-02-19T13:30:56.593000",
          "content": "<p>When debugging code online for testing, the submission.csv file can be generated normally, and the content is also normal. The submission.csv file is located in the '/kaggle/working' directory.<br>\nLoad the model as a dataset into '/kaggle/input', copy the model into '/kaggle/working', and use it.<br>\nCan we train the model offline and submit it online?<br>\nIs there an issue with the position of submission.csv? Or something else?</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2658665,
      "author_name": "Master Kim",
      "author_url": "",
      "post_date": "2024-02-19T10:18:38.140000",
      "content": "<p>I don't know the much of your code, but I pretty expect that while producing and scoring submisson file, the notebook's ram has ran out.<br>\ntry to use garbage collection with non important file. like this code</p>\n<h1>FREE MEMORY</h1>\n<p>import os, gc<br>\nos.environ[\"CUDA_VISIBLE_DEVICES\"]=\"0,1\"</p>\n<p>del all_eegs, spectrograms, data<br>\ngc.collect()</p>",
      "votes": 0,
      "replies": [
        {
          "id": 2658674,
          "author_name": "gaoyang",
          "author_url": "",
          "post_date": "2024-02-19T10:30:58.183000",
          "content": "<p>Thank you, I'll give it a try.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2658732,
          "author_name": "gaoyang",
          "author_url": "",
          "post_date": "2024-02-19T11:14:42.683000",
          "content": "<p>By the way, how long does it take for you to evaluate once.</p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2658848,
      "author_name": "",
      "author_url": "",
      "post_date": "2024-02-19T12:56:44.530000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2658397": "As a beginner at Kaggle, I don't know how to approach this problem.\nThe test generated the submission.csv file normally, but the submission timed out. \nThe code did not report any errors, The test generated the submission.csv file normally, but the submission timed out.\nThe submission.csv file is located in the '/kaggle/working' directory.\nUsing 1060 takes an average of 53.9ms per image.\n\n\n# -----------------------------------------\nThe code evaluated in the following test can be evaluated successfully, but my evaluation code is not. Can someone tell me why?\n```python\nimport pandas as pd\n\ntrain = pd.read_csv(f'/kaggle/input/hms-harmful-brain-activity-classification/test.csv')\nEEG_IDS = train.eeg_id.unique()\n\nprint('------------------------------------')\n\n# 0.166666667,0.166666667,0.166666667,0.166666667,0.166666667,0.166666667\n\nsample_submission_str = 'eeg_id,seizure_vote,lpd_vote,gpd_vote,lrda_vote,grda_vote,other_vote' + '\\n'\n\nfor i, eeg_id in enumerate(EEG_IDS):\n    print(i, eeg_id)\n    sample_submission_str = sample_submission_str + str(eeg_id) + ',0.166666667,0.166666667,0.166666667,0.166666667,0.166666667,0.166666667' + '\\n'\n\nsave_path = '/kaggle/working/submission.csv'\nwith open(save_path, 'w') as txt_save:\n    txt_save.write(sample_submission_str)\nprint(sample_submission_str)\n```",
    "2658770": "Are you using GPU? Kaggle notebooks use CPU by default.",
    "2658665": "I don't know the much of your code, but I pretty expect that while producing and scoring submisson file, the notebook's ram has ran out.\ntry to use garbage collection with non important file. like this code\n\n# FREE MEMORY\n\nimport os, gc\nos.environ[\"CUDA_VISIBLE_DEVICES\"]=\"0,1\"\n\ndel all_eegs, spectrograms, data\ngc.collect()",
    "2658848": ""
  }
}