{
  "id": 222037,
  "title": "Is it safe to use sample_submission.csv for inference?",
  "url": "/competitions/ranzcr-clip-catheter-line-classification/discussion/222037",
  "author_name": "",
  "post_date": "2021-02-25T04:08:27.502614Z",
  "votes": 2,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I hava a question about the layout of submission.csv.</p>\n<p>I found a few note books that create submission.csv as follows.</p>\n<p>`<br>\ntest = pd.read_csv('../input/ranzcr-clip-catheter-line-classification/sample_submission.csv')<br>\n…<br>\ntest[target_cols] = predictions<br>\ntest[['StudyInstanceUID'] + target_cols].to_csv('submission.csv', index=False)</p>\n<p>`<br>\nI'm not sure if I'm predicting enough about the tests hidden in this sabmit.csv.<br>\nDoes the sample_submission.csv also change the number of lines when it is submitted?</p>\n<p>example <br>\n<a href=\"https://www.kaggle.com/raghaw/ensemble-of-2-best-public-notebooks\" target=\"_blank\">https://www.kaggle.com/raghaw/ensemble-of-2-best-public-notebooks</a><br>\n<a href=\"https://www.kaggle.com/alincijov/ranzcr-resnet200d-seresnet152d-inference\" target=\"_blank\">https://www.kaggle.com/alincijov/ranzcr-resnet200d-seresnet152d-inference</a></p>",
  "messages": [
    {
      "id": "1217432",
      "postDate": "02/25/2021 04:08:27",
      "content": "<p>I hava a question about the layout of submission.csv.</p>\n<p>I found a few note books that create submission.csv as follows.</p>\n<p>`<br>\ntest = pd.read_csv('../input/ranzcr-clip-catheter-line-classification/sample_submission.csv')<br>\n…<br>\ntest[target_cols] = predictions<br>\ntest[['StudyInstanceUID'] + target_cols].to_csv('submission.csv', index=False)</p>\n<p>`<br>\nI'm not sure if I'm predicting enough about the tests hidden in this sabmit.csv.<br>\nDoes the sample_submission.csv also change the number of lines when it is submitted?</p>\n<p>example <br>\n<a href=\"https://www.kaggle.com/raghaw/ensemble-of-2-best-public-notebooks\" target=\"_blank\">https://www.kaggle.com/raghaw/ensemble-of-2-best-public-notebooks</a><br>\n<a href=\"https://www.kaggle.com/alincijov/ranzcr-resnet200d-seresnet152d-inference\" target=\"_blank\">https://www.kaggle.com/alincijov/ranzcr-resnet200d-seresnet152d-inference</a></p>",
      "rawMarkdown": "I hava a question about the layout of submission.csv.\n\nI found a few note books that create submission.csv as follows.\n\n`\ntest = pd.read_csv('../input/ranzcr-clip-catheter-line-classification/sample_submission.csv')\n...\ntest[target_cols] = predictions\ntest[['StudyInstanceUID'] + target_cols].to_csv('submission.csv', index=False)\n\n`\nI'm not sure if I'm predicting enough about the tests hidden in this sabmit.csv.\nDoes the sample_submission.csv also change the number of lines when it is submitted?\n\nexample \n<https://www.kaggle.com/raghaw/ensemble-of-2-best-public-notebooks>\n<https://www.kaggle.com/alincijov/ranzcr-resnet200d-seresnet152d-inference>",
      "votes": null
    },
    {
      "id": "1217676",
      "postDate": "02/25/2021 08:42:53",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/rokiso\" target=\"_blank\">@rokiso</a>, it should be safe to use <code>sample_submission.csv</code> to load ids of the hidden test set images and make predictions. In the code competitions, <code>sample_submission.csv</code> is updated on the submission time to include the relevant rows.</p>",
      "rawMarkdown": "Hi @rokiso, it should be safe to use `sample_submission.csv` to load ids of the hidden test set images and make predictions. In the code competitions, `sample_submission.csv` is updated on the submission time to include the relevant rows.",
      "votes": null
    },
    {
      "id": "1219835",
      "postDate": "02/27/2021 09:20:16",
      "content": "<p><a href=\"https://www.kaggle.com/kozodoi\" target=\"_blank\">@kozodoi</a> <br>\nThank you for your answer!<br>\nI'm relieved to know that I can submit the projected values based on sample_submission.csv.<br>\nI have only a few days left, but I will do my best.</p>",
      "rawMarkdown": "kozodoi \nThank you for your answer!\nI'm relieved to know that I can submit the projected values based on sample_submission.csv.\nI have only a few days left, but I will do my best.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1217676,
      "author_name": "kozodoi",
      "author_url": "",
      "post_date": "02/25/2021 08:42:53",
      "content": "<p>Hi <a href=\"https://www.kaggle.com/rokiso\" target=\"_blank\">@rokiso</a>, it should be safe to use <code>sample_submission.csv</code> to load ids of the hidden test set images and make predictions. In the code competitions, <code>sample_submission.csv</code> is updated on the submission time to include the relevant rows.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1219835,
      "author_name": "rokiso",
      "author_url": "",
      "post_date": "02/27/2021 09:20:16",
      "content": "<p><a href=\"https://www.kaggle.com/kozodoi\" target=\"_blank\">@kozodoi</a> <br>\nThank you for your answer!<br>\nI'm relieved to know that I can submit the projected values based on sample_submission.csv.<br>\nI have only a few days left, but I will do my best.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1217432": "I hava a question about the layout of submission.csv.\n\nI found a few note books that create submission.csv as follows.\n\n`\ntest = pd.read_csv('../input/ranzcr-clip-catheter-line-classification/sample_submission.csv')\n...\ntest[target_cols] = predictions\ntest[['StudyInstanceUID'] + target_cols].to_csv('submission.csv', index=False)\n\n`\nI'm not sure if I'm predicting enough about the tests hidden in this sabmit.csv.\nDoes the sample_submission.csv also change the number of lines when it is submitted?\n\nexample \n<https://www.kaggle.com/raghaw/ensemble-of-2-best-public-notebooks>\n<https://www.kaggle.com/alincijov/ranzcr-resnet200d-seresnet152d-inference>",
    "1217676": "Hi @rokiso, it should be safe to use `sample_submission.csv` to load ids of the hidden test set images and make predictions. In the code competitions, `sample_submission.csv` is updated on the submission time to include the relevant rows.",
    "1219835": "kozodoi \nThank you for your answer!\nI'm relieved to know that I can submit the projected values based on sample_submission.csv.\nI have only a few days left, but I will do my best."
  },
  "source": "meta"
}