{
  "id": 362359,
  "title": "Help needed with Inference and submission",
  "url": "/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/362359",
  "author_name": "Ragini Narasimha",
  "post_date": "2022-10-26T23:25:14.239000",
  "votes": 3,
  "comment_count": 10,
  "views": 0,
  "content": "<p>Hi  I am trying to submit my code, and wanted to know if an inference code is compulsory to submit to the competition?<br>\nSecondly with that, my code is not submitting due to a submission code error with the same format as needed. </p>",
  "messages": [
    {
      "id": 2005361,
      "postDate": "2022-10-26T23:25:14.240Z",
      "content": "<p>Hi  I am trying to submit my code, and wanted to know if an inference code is compulsory to submit to the competition?<br>\nSecondly with that, my code is not submitting due to a submission code error with the same format as needed. </p>",
      "rawMarkdown": "Hi  I am trying to submit my code, and wanted to know if an inference code is compulsory to submit to the competition?\nSecondly with that, my code is not submitting due to a submission code error with the same format as needed. ",
      "votes": 2
    },
    {
      "id": 2006527,
      "postDate": "2022-10-27T16:19:48.663Z",
      "content": "<p>Hey, it would be great if anyone could help? the competition ends soon. </p>",
      "rawMarkdown": "Hey, it would be great if anyone could help? the competition ends soon. ",
      "replies": [
        {
          "id": 2006554,
          "postDate": "2022-10-27T16:34:38.143Z",
          "content": "<p>It is not clear what you are asking.  You have to submit a notebook that outputs a submission file.  Whether that is an \"inference code\" is up to you.  For your submission code error, you need to provide us some details, or try debugging it on your own first.  Does it run on a small test set?  You have to modify the test.csv set (3 patients) provided, because they don't match images in the image directory.  Check that the output format you produce matches that is expected.  </p>",
          "rawMarkdown": "It is not clear what you are asking.  You have to submit a notebook that outputs a submission file.  Whether that is an \"inference code\" is up to you.  For your submission code error, you need to provide us some details, or try debugging it on your own first.  Does it run on a small test set?  You have to modify the test.csv set (3 patients) provided, because they don't match images in the image directory.  Check that the output format you produce matches that is expected.  ",
          "votes": 1
        },
        {
          "id": 2006563,
          "postDate": "2022-10-27T16:39:35.223Z",
          "content": "<p>Hey, I have a notebook with the submissions.csv that has been written using the test.csv retaining the UID in the test.csv and just appending the fractured column, there is no index and the file is in the format needed I still get the submissions score error. </p>",
          "rawMarkdown": "Hey, I have a notebook with the submissions.csv that has been written using the test.csv retaining the UID in the test.csv and just appending the fractured column, there is no index and the file is in the format needed I still get the submissions score error. "
        },
        {
          "id": 2006570,
          "postDate": "2022-10-27T16:47:44.790Z",
          "content": "<p>There should not be a UID in your submission file.<br>\nIf you upload your submission file and the exact error you are getting, maybe someone could help.<br>\nYour file should look like this:</p>\n<pre><code>row_id,fractured\n1.2.826.0.1.3680043.10197_C1,0.03011474609375\n1.2.826.0.1.3680043.10454_C1,0.07093505859375\n1.2.826.0.1.3680043.10690_C1,0.0901702880859375\n</code></pre>",
          "rawMarkdown": "There should not be a UID in your submission file.\nIf you upload your submission file and the exact error you are getting, maybe someone could help.\nYour file should look like this:\n```\nrow_id,fractured\n1.2.826.0.1.3680043.10197_C1,0.03011474609375\n1.2.826.0.1.3680043.10454_C1,0.07093505859375\n1.2.826.0.1.3680043.10690_C1,0.0901702880859375\n```"
        },
        {
          "id": 2006577,
          "postDate": "2022-10-27T16:52:20.933Z",
          "content": "<p>My output csv looks like this </p>",
          "rawMarkdown": "My output csv looks like this \n"
        },
        {
          "id": 2006603,
          "postDate": "2022-10-27T17:17:14.197Z",
          "content": "<p><a href=\"https://www.kaggle.com/solverworld\" target=\"_blank\">@solverworld</a>, do they want me to submit a text file named submission.csv? because this is how the txt format of my submissions. csv looks like. </p>\n<p>row_id,fractured<br>\n1.2.826.0.1.3680043.10197_C1,0.21640359<br>\n1.2.826.0.1.3680043.10197_C2,0.79669636<br>\n1.2.826.0.1.3680043.10197_C3,0.18827829<br>\n1.2.826.0.1.3680043.10197_C4,0.24350384<br>\n1.2.826.0.1.3680043.10197_C5,0.25526735<br>\n1.2.826.0.1.3680043.10197_C6,0.2917613<br>\n1.2.826.0.1.3680043.10197_C7,0.2554656<br>\n1.2.826.0.1.3680043.10197_patient_overall,0.9615836335171796<br>\n1.2.826.0.1.3680043.10454_C1,0.21124414<br>\n1.2.826.0.1.3680043.10454_C2,0.7853434<br>\n1.2.826.0.1.3680043.10454_C3,0.18691808<br>\n1.2.826.0.1.3680043.10454_C4,0.23375069<br>\n1.2.826.0.1.3680043.10454_C5,0.24019562<br>\n1.2.826.0.1.3680043.10454_C6,0.26322177<br>\n1.2.826.0.1.3680043.10454_C7,0.24027182<br>\n1.2.826.0.1.3680043.10454_patient_overall,0.9551370273872347<br>\n1.2.826.0.1.3680043.10690_C1,0.33621657<br>\n1.2.826.0.1.3680043.10690_C2,0.71323377<br>\n1.2.826.0.1.3680043.10690_C3,0.36125985<br>\n1.2.826.0.1.3680043.10690_C4,0.37310833<br>\n1.2.826.0.1.3680043.10690_C5,0.3109317<br>\n1.2.826.0.1.3680043.10690_C6,0.45573795<br>\n1.2.826.0.1.3680043.10690_C7,0.39309794<br>\n1.2.826.0.1.3680043.10690_patient_overall,0.982651574490906</p>",
          "rawMarkdown": "@solverworld, do they want me to submit a text file named submission.csv? because this is how the txt format of my submissions. csv looks like. \n\nrow_id,fractured\n1.2.826.0.1.3680043.10197_C1,0.21640359\n1.2.826.0.1.3680043.10197_C2,0.79669636\n1.2.826.0.1.3680043.10197_C3,0.18827829\n1.2.826.0.1.3680043.10197_C4,0.24350384\n1.2.826.0.1.3680043.10197_C5,0.25526735\n1.2.826.0.1.3680043.10197_C6,0.2917613\n1.2.826.0.1.3680043.10197_C7,0.2554656\n1.2.826.0.1.3680043.10197_patient_overall,0.9615836335171796\n1.2.826.0.1.3680043.10454_C1,0.21124414\n1.2.826.0.1.3680043.10454_C2,0.7853434\n1.2.826.0.1.3680043.10454_C3,0.18691808\n1.2.826.0.1.3680043.10454_C4,0.23375069\n1.2.826.0.1.3680043.10454_C5,0.24019562\n1.2.826.0.1.3680043.10454_C6,0.26322177\n1.2.826.0.1.3680043.10454_C7,0.24027182\n1.2.826.0.1.3680043.10454_patient_overall,0.9551370273872347\n1.2.826.0.1.3680043.10690_C1,0.33621657\n1.2.826.0.1.3680043.10690_C2,0.71323377\n1.2.826.0.1.3680043.10690_C3,0.36125985\n1.2.826.0.1.3680043.10690_C4,0.37310833\n1.2.826.0.1.3680043.10690_C5,0.3109317\n1.2.826.0.1.3680043.10690_C6,0.45573795\n1.2.826.0.1.3680043.10690_C7,0.39309794\n1.2.826.0.1.3680043.10690_patient_overall,0.982651574490906\n"
        },
        {
          "id": 2006669,
          "postDate": "2022-10-27T18:31:01.137Z",
          "content": "<p>You don't submit the submission.csv file, your notebook must write it.  The last lines of my notebook are:</p>\n<pre><code>#Now do a submission\nprint(test_df[['row_id','fractured']])\ntest_df[['row_id','fractured']].to_csv('submission.csv', index=0)\n</code></pre>\n<p>and my notebook shows this when run:</p>\n<pre><code>                         row_id  fractured\n0  1.2.826.0.1.3680043.10197_C1   0.032339\n1  1.2.826.0.1.3680043.10454_C1   0.090915\n2  1.2.826.0.1.3680043.10690_C1   0.096085\n</code></pre>",
          "rawMarkdown": "You don't submit the submission.csv file, your notebook must write it.  The last lines of my notebook are:\n```\n#Now do a submission\nprint(test_df[['row_id','fractured']])\ntest_df[['row_id','fractured']].to_csv('submission.csv', index=0)\n```\nand my notebook shows this when run:\n```\n                         row_id  fractured\n0  1.2.826.0.1.3680043.10197_C1   0.032339\n1  1.2.826.0.1.3680043.10454_C1   0.090915\n2  1.2.826.0.1.3680043.10690_C1   0.096085\n```"
        },
        {
          "id": 2006672,
          "postDate": "2022-10-27T18:33:14.387Z",
          "content": "<p>I am not sure from your comments if you know this, but you submit a notebook, and it will run on a new test.csv and images that are different than the ones you see when you run the notebook yourself.  Therefore you can't ever know what your submission.csv data is exactly.</p>",
          "rawMarkdown": "I am not sure from your comments if you know this, but you submit a notebook, and it will run on a new test.csv and images that are different than the ones you see when you run the notebook yourself.  Therefore you can't ever know what your submission.csv data is exactly."
        },
        {
          "id": 2006675,
          "postDate": "2022-10-27T18:36:57.977Z",
          "content": "<p>Hi, yes the last lines of my code look exactly the same too and the way the file is being written is right. I am not sure why I am getting the submission code error. </p>",
          "rawMarkdown": "Hi, yes the last lines of my code look exactly the same too and the way the file is being written is right. I am not sure why I am getting the submission code error. "
        },
        {
          "id": 2006996,
          "postDate": "2022-10-28T00:13:25.733Z",
          "content": "<p>sorry i couldnt be more helpful.  </p>",
          "rawMarkdown": "sorry i couldnt be more helpful.  \n"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2006527,
      "author_name": "Ragini Narasimha",
      "author_url": "",
      "post_date": "2022-10-27T16:19:48.663000",
      "content": "<p>Hey, it would be great if anyone could help? the competition ends soon. </p>",
      "votes": 0,
      "replies": [
        {
          "id": 2006554,
          "author_name": "SolverWorld",
          "author_url": "",
          "post_date": "2022-10-27T16:34:38.143000",
          "content": "<p>It is not clear what you are asking.  You have to submit a notebook that outputs a submission file.  Whether that is an \"inference code\" is up to you.  For your submission code error, you need to provide us some details, or try debugging it on your own first.  Does it run on a small test set?  You have to modify the test.csv set (3 patients) provided, because they don't match images in the image directory.  Check that the output format you produce matches that is expected.  </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 2006563,
          "author_name": "Ragini Narasimha",
          "author_url": "",
          "post_date": "2022-10-27T16:39:35.223000",
          "content": "<p>Hey, I have a notebook with the submissions.csv that has been written using the test.csv retaining the UID in the test.csv and just appending the fractured column, there is no index and the file is in the format needed I still get the submissions score error. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006570,
          "author_name": "SolverWorld",
          "author_url": "",
          "post_date": "2022-10-27T16:47:44.790000",
          "content": "<p>There should not be a UID in your submission file.<br>\nIf you upload your submission file and the exact error you are getting, maybe someone could help.<br>\nYour file should look like this:</p>\n<pre><code>row_id,fractured\n1.2.826.0.1.3680043.10197_C1,0.03011474609375\n1.2.826.0.1.3680043.10454_C1,0.07093505859375\n1.2.826.0.1.3680043.10690_C1,0.0901702880859375\n</code></pre>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006577,
          "author_name": "Ragini Narasimha",
          "author_url": "",
          "post_date": "2022-10-27T16:52:20.933000",
          "content": "<p>My output csv looks like this </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006603,
          "author_name": "Ragini Narasimha",
          "author_url": "",
          "post_date": "2022-10-27T17:17:14.197000",
          "content": "<p><a href=\"https://www.kaggle.com/solverworld\" target=\"_blank\">@solverworld</a>, do they want me to submit a text file named submission.csv? because this is how the txt format of my submissions. csv looks like. </p>\n<p>row_id,fractured<br>\n1.2.826.0.1.3680043.10197_C1,0.21640359<br>\n1.2.826.0.1.3680043.10197_C2,0.79669636<br>\n1.2.826.0.1.3680043.10197_C3,0.18827829<br>\n1.2.826.0.1.3680043.10197_C4,0.24350384<br>\n1.2.826.0.1.3680043.10197_C5,0.25526735<br>\n1.2.826.0.1.3680043.10197_C6,0.2917613<br>\n1.2.826.0.1.3680043.10197_C7,0.2554656<br>\n1.2.826.0.1.3680043.10197_patient_overall,0.9615836335171796<br>\n1.2.826.0.1.3680043.10454_C1,0.21124414<br>\n1.2.826.0.1.3680043.10454_C2,0.7853434<br>\n1.2.826.0.1.3680043.10454_C3,0.18691808<br>\n1.2.826.0.1.3680043.10454_C4,0.23375069<br>\n1.2.826.0.1.3680043.10454_C5,0.24019562<br>\n1.2.826.0.1.3680043.10454_C6,0.26322177<br>\n1.2.826.0.1.3680043.10454_C7,0.24027182<br>\n1.2.826.0.1.3680043.10454_patient_overall,0.9551370273872347<br>\n1.2.826.0.1.3680043.10690_C1,0.33621657<br>\n1.2.826.0.1.3680043.10690_C2,0.71323377<br>\n1.2.826.0.1.3680043.10690_C3,0.36125985<br>\n1.2.826.0.1.3680043.10690_C4,0.37310833<br>\n1.2.826.0.1.3680043.10690_C5,0.3109317<br>\n1.2.826.0.1.3680043.10690_C6,0.45573795<br>\n1.2.826.0.1.3680043.10690_C7,0.39309794<br>\n1.2.826.0.1.3680043.10690_patient_overall,0.982651574490906</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006669,
          "author_name": "SolverWorld",
          "author_url": "",
          "post_date": "2022-10-27T18:31:01.137000",
          "content": "<p>You don't submit the submission.csv file, your notebook must write it.  The last lines of my notebook are:</p>\n<pre><code>#Now do a submission\nprint(test_df[['row_id','fractured']])\ntest_df[['row_id','fractured']].to_csv('submission.csv', index=0)\n</code></pre>\n<p>and my notebook shows this when run:</p>\n<pre><code>                         row_id  fractured\n0  1.2.826.0.1.3680043.10197_C1   0.032339\n1  1.2.826.0.1.3680043.10454_C1   0.090915\n2  1.2.826.0.1.3680043.10690_C1   0.096085\n</code></pre>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006672,
          "author_name": "SolverWorld",
          "author_url": "",
          "post_date": "2022-10-27T18:33:14.387000",
          "content": "<p>I am not sure from your comments if you know this, but you submit a notebook, and it will run on a new test.csv and images that are different than the ones you see when you run the notebook yourself.  Therefore you can't ever know what your submission.csv data is exactly.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006675,
          "author_name": "Ragini Narasimha",
          "author_url": "",
          "post_date": "2022-10-27T18:36:57.977000",
          "content": "<p>Hi, yes the last lines of my code look exactly the same too and the way the file is being written is right. I am not sure why I am getting the submission code error. </p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 2006996,
          "author_name": "SolverWorld",
          "author_url": "",
          "post_date": "2022-10-28T00:13:25.733000",
          "content": "<p>sorry i couldnt be more helpful.  </p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2005361": "Hi  I am trying to submit my code, and wanted to know if an inference code is compulsory to submit to the competition?\nSecondly with that, my code is not submitting due to a submission code error with the same format as needed. ",
    "2006527": "Hey, it would be great if anyone could help? the competition ends soon. "
  }
}