{
  "id": 272714,
  "title": "Problem submitting the scores.",
  "url": "/competitions/rsna-miccai-brain-tumor-radiogenomic-classification/discussion/272714",
  "author_name": "",
  "post_date": "2021-09-16T22:52:24.947352200Z",
  "votes": null,
  "comment_count": 10,
  "views": 0,
  "content": "<p>We are trying to submit our predictions to the Kaggle portal for Task 2 but facing a lot of errors even after using all the modifications suggested here <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging</a>.</p>\n<p>Any help/guidance is appreciated.</p>",
  "messages": [
    {
      "id": "1515267",
      "postDate": "09/16/2021 22:52:24",
      "content": "<p>We are trying to submit our predictions to the Kaggle portal for Task 2 but facing a lot of errors even after using all the modifications suggested here <a href=\"https://www.kaggle.com/code-competition-debugging\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging</a>.</p>\n<p>Any help/guidance is appreciated.</p>",
      "rawMarkdown": "We are trying to submit our predictions to the Kaggle portal for Task 2 but facing a lot of errors even after using all the modifications suggested here https://www.kaggle.com/code-competition-debugging.\n\nAny help/guidance is appreciated.",
      "votes": null
    },
    {
      "id": "1516044",
      "postDate": "09/17/2021 19:47:50",
      "content": "<p>Are you making the \"Brast1id\" as your primary key in pandas df of submission or not? if not, then do it.</p>",
      "rawMarkdown": "Are you making the \"Brast1id\" as your primary key in pandas df of submission or not? if not, then do it.",
      "votes": null
    },
    {
      "id": "1516336",
      "postDate": "09/18/2021 07:57:33",
      "content": "<p>Check your submission.csv. What and how is recorded in it. Run your code on the machine, check if there are any errors. See if it will work on a hidden dataset.</p>",
      "rawMarkdown": "Check your submission.csv. What and how is recorded in it. Run your code on the machine, check if there are any errors. See if it will work on a hidden dataset.",
      "votes": null
    },
    {
      "id": "1518153",
      "postDate": "09/20/2021 12:58:50",
      "content": "<p>We have tried both. But nothing seems to work. </p>",
      "rawMarkdown": "We have tried both. But nothing seems to work.",
      "votes": null
    },
    {
      "id": "1518183",
      "postDate": "09/20/2021 13:17:54",
      "content": "<p>Please find the link below to download an example submission file we are trying to submit. Any help will be appreciated.<br>\n<a href=\"https://drive.google.com/file/d/1VqdB3v1c3KJ-cnVBsgEVFmYt8Gqu2mmm/view?usp=sharing\" target=\"_blank\">https://drive.google.com/file/d/1VqdB3v1c3KJ-cnVBsgEVFmYt8Gqu2mmm/view?usp=sharing</a></p>",
      "rawMarkdown": "Please find the link below to download an example submission file we are trying to submit. Any help will be appreciated.\nhttps://drive.google.com/file/d/1VqdB3v1c3KJ-cnVBsgEVFmYt8Gqu2mmm/view?usp=sharing",
      "votes": null
    },
    {
      "id": "1518306",
      "postDate": "09/20/2021 14:50:10",
      "content": "<p>how do you write the upload file? what error are you getting?</p>",
      "rawMarkdown": "how do you write the upload file? what error are you getting?",
      "votes": null
    },
    {
      "id": "1518342",
      "postDate": "09/20/2021 15:20:28",
      "content": "<p>import pandas as pd<br>\npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv')<br>\npreds = []<br>\nfor index in range(len(preds_submission)):<br>\n    preds.append(round(preds_submission['MGMT_value'][index],4))</p>\n<p>sample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv')<br>\nsample_submission['BraTS21ID'] = sample_submission['BraTS21ID'].map(str)</p>\n<p>for index in range(len(sample_submission)):<br>\n    temp = len(sample_submission['BraTS21ID'][index])<br>\n    if temp==1:<br>\n        new_ID = '0000'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID<br>\n    elif temp==2:<br>\n        new_ID = '000'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID<br>\n    elif temp==3:<br>\n        new_ID = '00'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID<br>\n    elif temp==4:<br>\n        new_ID = '0'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID</p>\n<p>sample_submission[\"MGMT_value\"] = preds<br>\nsample_submission.to_csv(\"submission.csv\", index=False)<br>\nprint(sample_submission)</p>",
      "rawMarkdown": "import pandas as pd\npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv')\npreds = []\nfor index in range(len(preds_submission)):\n    preds.append(round(preds_submission['MGMT_value'][index],4))\n\nsample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv')\nsample_submission['BraTS21ID'] = sample_submission['BraTS21ID'].map(str)\n\nfor index in range(len(sample_submission)):\n    temp = len(sample_submission['BraTS21ID'][index])\n    if temp==1:\n        new_ID = '0000'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n    elif temp==2:\n        new_ID = '000'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n    elif temp==3:\n        new_ID = '00'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n    elif temp==4:\n        new_ID = '0'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n\nsample_submission[\"MGMT_value\"] = preds\nsample_submission.to_csv(\"submission.csv\", index=False)\nprint(sample_submission)",
      "votes": null
    },
    {
      "id": "1518442",
      "postDate": "09/20/2021 16:31:53",
      "content": "<p>try: <br>\npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv'dtype='string')<br>\nsample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv', dtype='string')<br>\n(if the values ​​of the cells in the column 'BraTS21ID' are the same.)<br>\nfor i in range(len(sample_submission)):<br>\n    pred = preds_submission.loc[i,'MGMT_value']<br>\n    sample_submission.loc[i, 'MGMT_value'] = pred</p>\n<p>sample_submission.to_csv('/kaggle/working/submission.csv',index = False)</p>",
      "rawMarkdown": "try: \npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv'dtype='string')\nsample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv', dtype='string')\n(if the values ​​of the cells in the column 'BraTS21ID' are the same.)\nfor i in range(len(sample_submission)):\n    pred = preds_submission.loc[i,'MGMT_value']\n    sample_submission.loc[i, 'MGMT_value'] = pred\n\nsample_submission.to_csv('/kaggle/working/submission.csv',index = False)",
      "votes": null
    },
    {
      "id": "1519270",
      "postDate": "09/21/2021 13:18:10",
      "content": "<p>I tried. No Luck. <br>\nIt giving me a different error now. <strong>Notebook Threw Exception</strong>.<br>\nAccording to the the Code Competitions - Errors &amp; Debugging Tips (<a href=\"https://www.kaggle.com/code-competition-debugging)\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging)</a>, <br>\nNotebook Threw Exception is defined as - While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset.</p>\n<p>Additionally, what I noticed is that, when we submit the scores, the submission window says, <br>\n\"In this competition, we will privately re-run your selected Notebook Version with a hidden test set substituted into the competition dataset. We then extract your chosen Output File from the re-run and use that to determine your score.\"</p>\n<p>Does this mean I have to do all my pre-processing, testing and creating a new submission.csv in the notebook i submit ?<br>\nBecause, as of now, all I do is just read my predictions and submit it.</p>",
      "rawMarkdown": "I tried. No Luck. \nIt giving me a different error now. **Notebook Threw Exception**.\nAccording to the the Code Competitions - Errors & Debugging Tips (https://www.kaggle.com/code-competition-debugging), \nNotebook Threw Exception is defined as - While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset.\n\nAdditionally, what I noticed is that, when we submit the scores, the submission window says, \n\"In this competition, we will privately re-run your selected Notebook Version with a hidden test set substituted into the competition dataset. We then extract your chosen Output File from the re-run and use that to determine your score.\"\n\nDoes this mean I have to do all my pre-processing, testing and creating a new submission.csv in the notebook i submit ?\nBecause, as of now, all I do is just read my predictions and submit it.",
      "votes": null
    },
    {
      "id": "1519316",
      "postDate": "09/21/2021 14:06:14",
      "content": "<p>you have to run the code, run the entire sequence of operations, get the predictions, write them down, save the notepad and output file, then send the notepad and file for review.</p>",
      "rawMarkdown": "you have to run the code, run the entire sequence of operations, get the predictions, write them down, save the notepad and output file, then send the notepad and file for review.",
      "votes": null
    },
    {
      "id": "1523340",
      "postDate": "09/25/2021 09:04:54",
      "content": "<p>Also having problems with submissions. Could someone kindly share a script pass_or_not=check_submission('submission.csv') which produce 1 if the file is OK for kaggle and 0 if not? </p>",
      "rawMarkdown": "Also having problems with submissions. Could someone kindly share a script pass_or_not=check_submission('submission.csv') which produce 1 if the file is OK for kaggle and 0 if not?",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1516044,
      "author_name": "bilal1907",
      "author_url": "",
      "post_date": "09/17/2021 19:47:50",
      "content": "<p>Are you making the \"Brast1id\" as your primary key in pandas df of submission or not? if not, then do it.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1516336,
      "author_name": "zaakciiru",
      "author_url": "",
      "post_date": "09/18/2021 07:57:33",
      "content": "<p>Check your submission.csv. What and how is recorded in it. Run your code on the machine, check if there are any errors. See if it will work on a hidden dataset.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1518153,
      "author_name": "teamalpaca",
      "author_url": "",
      "post_date": "09/20/2021 12:58:50",
      "content": "<p>We have tried both. But nothing seems to work. </p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1518183,
      "author_name": "teamalpaca",
      "author_url": "",
      "post_date": "09/20/2021 13:17:54",
      "content": "<p>Please find the link below to download an example submission file we are trying to submit. Any help will be appreciated.<br>\n<a href=\"https://drive.google.com/file/d/1VqdB3v1c3KJ-cnVBsgEVFmYt8Gqu2mmm/view?usp=sharing\" target=\"_blank\">https://drive.google.com/file/d/1VqdB3v1c3KJ-cnVBsgEVFmYt8Gqu2mmm/view?usp=sharing</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1518306,
          "author_name": "zaakciiru",
          "author_url": "",
          "post_date": "09/20/2021 14:50:10",
          "content": "<p>how do you write the upload file? what error are you getting?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1518342,
          "author_name": "teamalpaca",
          "author_url": "",
          "post_date": "09/20/2021 15:20:28",
          "content": "<p>import pandas as pd<br>\npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv')<br>\npreds = []<br>\nfor index in range(len(preds_submission)):<br>\n    preds.append(round(preds_submission['MGMT_value'][index],4))</p>\n<p>sample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv')<br>\nsample_submission['BraTS21ID'] = sample_submission['BraTS21ID'].map(str)</p>\n<p>for index in range(len(sample_submission)):<br>\n    temp = len(sample_submission['BraTS21ID'][index])<br>\n    if temp==1:<br>\n        new_ID = '0000'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID<br>\n    elif temp==2:<br>\n        new_ID = '000'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID<br>\n    elif temp==3:<br>\n        new_ID = '00'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID<br>\n    elif temp==4:<br>\n        new_ID = '0'+sample_submission['BraTS21ID'][index]<br>\n        sample_submission['BraTS21ID'][index] = new_ID</p>\n<p>sample_submission[\"MGMT_value\"] = preds<br>\nsample_submission.to_csv(\"submission.csv\", index=False)<br>\nprint(sample_submission)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1518442,
          "author_name": "zaakciiru",
          "author_url": "",
          "post_date": "09/20/2021 16:31:53",
          "content": "<p>try: <br>\npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv'dtype='string')<br>\nsample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv', dtype='string')<br>\n(if the values ​​of the cells in the column 'BraTS21ID' are the same.)<br>\nfor i in range(len(sample_submission)):<br>\n    pred = preds_submission.loc[i,'MGMT_value']<br>\n    sample_submission.loc[i, 'MGMT_value'] = pred</p>\n<p>sample_submission.to_csv('/kaggle/working/submission.csv',index = False)</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1519270,
          "author_name": "teamalpaca",
          "author_url": "",
          "post_date": "09/21/2021 13:18:10",
          "content": "<p>I tried. No Luck. <br>\nIt giving me a different error now. <strong>Notebook Threw Exception</strong>.<br>\nAccording to the the Code Competitions - Errors &amp; Debugging Tips (<a href=\"https://www.kaggle.com/code-competition-debugging)\" target=\"_blank\">https://www.kaggle.com/code-competition-debugging)</a>, <br>\nNotebook Threw Exception is defined as - While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset.</p>\n<p>Additionally, what I noticed is that, when we submit the scores, the submission window says, <br>\n\"In this competition, we will privately re-run your selected Notebook Version with a hidden test set substituted into the competition dataset. We then extract your chosen Output File from the re-run and use that to determine your score.\"</p>\n<p>Does this mean I have to do all my pre-processing, testing and creating a new submission.csv in the notebook i submit ?<br>\nBecause, as of now, all I do is just read my predictions and submit it.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1519316,
          "author_name": "zaakciiru",
          "author_url": "",
          "post_date": "09/21/2021 14:06:14",
          "content": "<p>you have to run the code, run the entire sequence of operations, get the predictions, write them down, save the notepad and output file, then send the notepad and file for review.</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1523340,
      "author_name": "experienceinai",
      "author_url": "",
      "post_date": "09/25/2021 09:04:54",
      "content": "<p>Also having problems with submissions. Could someone kindly share a script pass_or_not=check_submission('submission.csv') which produce 1 if the file is OK for kaggle and 0 if not? </p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1515267": "We are trying to submit our predictions to the Kaggle portal for Task 2 but facing a lot of errors even after using all the modifications suggested here https://www.kaggle.com/code-competition-debugging.\n\nAny help/guidance is appreciated.",
    "1516044": "Are you making the \"Brast1id\" as your primary key in pandas df of submission or not? if not, then do it.",
    "1516336": "Check your submission.csv. What and how is recorded in it. Run your code on the machine, check if there are any errors. See if it will work on a hidden dataset.",
    "1518153": "We have tried both. But nothing seems to work.",
    "1518183": "Please find the link below to download an example submission file we are trying to submit. Any help will be appreciated.\nhttps://drive.google.com/file/d/1VqdB3v1c3KJ-cnVBsgEVFmYt8Gqu2mmm/view?usp=sharing",
    "1518306": "how do you write the upload file? what error are you getting?",
    "1518342": "import pandas as pd\npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv')\npreds = []\nfor index in range(len(preds_submission)):\n    preds.append(round(preds_submission['MGMT_value'][index],4))\n\nsample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv')\nsample_submission['BraTS21ID'] = sample_submission['BraTS21ID'].map(str)\n\nfor index in range(len(sample_submission)):\n    temp = len(sample_submission['BraTS21ID'][index])\n    if temp==1:\n        new_ID = '0000'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n    elif temp==2:\n        new_ID = '000'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n    elif temp==3:\n        new_ID = '00'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n    elif temp==4:\n        new_ID = '0'+sample_submission['BraTS21ID'][index]\n        sample_submission['BraTS21ID'][index] = new_ID\n\nsample_submission[\"MGMT_value\"] = preds\nsample_submission.to_csv(\"submission.csv\", index=False)\nprint(sample_submission)",
    "1518442": "try: \npreds_submission = pd.read_csv('../input/temp-chandan-01/predicted_submission.csv'dtype='string')\nsample_submission = pd.read_csv('../input/rsna-miccai-brain-tumor-radiogenomic-classification/sample_submission.csv', dtype='string')\n(if the values ​​of the cells in the column 'BraTS21ID' are the same.)\nfor i in range(len(sample_submission)):\n    pred = preds_submission.loc[i,'MGMT_value']\n    sample_submission.loc[i, 'MGMT_value'] = pred\n\nsample_submission.to_csv('/kaggle/working/submission.csv',index = False)",
    "1519270": "I tried. No Luck. \nIt giving me a different error now. **Notebook Threw Exception**.\nAccording to the the Code Competitions - Errors & Debugging Tips (https://www.kaggle.com/code-competition-debugging), \nNotebook Threw Exception is defined as - While rerunning your code, your notebook hit an unhandled error. Note that the hidden dataset can be larger/smaller/different than the public dataset.\n\nAdditionally, what I noticed is that, when we submit the scores, the submission window says, \n\"In this competition, we will privately re-run your selected Notebook Version with a hidden test set substituted into the competition dataset. We then extract your chosen Output File from the re-run and use that to determine your score.\"\n\nDoes this mean I have to do all my pre-processing, testing and creating a new submission.csv in the notebook i submit ?\nBecause, as of now, all I do is just read my predictions and submit it.",
    "1519316": "you have to run the code, run the entire sequence of operations, get the predictions, write them down, save the notepad and output file, then send the notepad and file for review.",
    "1523340": "Also having problems with submissions. Could someone kindly share a script pass_or_not=check_submission('submission.csv') which produce 1 if the file is OK for kaggle and 0 if not?"
  },
  "source": "meta"
}