{
  "id": 229510,
  "title": "Submission Scoring Error",
  "url": "/competitions/hubmap-kidney-segmentation/discussion/229510",
  "author_name": "",
  "post_date": "2021-03-30T13:47:56.891684800Z",
  "votes": null,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I have Submission Scoring Error with this test submission:<br>\nid,predicted<br>\n2ec3f1bb9, 10, 10<br>\n3589adb90, 10, 10<br>\nd488c759a, 10, 10<br>\naa05346ff, 10, 10<br>\n57512b7f1, 10, 10<br>\nWhy&amp;</p>",
  "messages": [
    {
      "id": "1257065",
      "postDate": "03/30/2021 13:47:56",
      "content": "<p>I have Submission Scoring Error with this test submission:<br>\nid,predicted<br>\n2ec3f1bb9, 10, 10<br>\n3589adb90, 10, 10<br>\nd488c759a, 10, 10<br>\naa05346ff, 10, 10<br>\n57512b7f1, 10, 10<br>\nWhy&amp;</p>",
      "rawMarkdown": "I have Submission Scoring Error with this test submission:\nid,predicted\n2ec3f1bb9, 10, 10\n3589adb90, 10, 10\nd488c759a, 10, 10\naa05346ff, 10, 10\n57512b7f1, 10, 10\nWhy&",
      "votes": null
    },
    {
      "id": "1258327",
      "postDate": "03/31/2021 14:35:07",
      "content": "<p>I found the reason by miself.<br>\nIt seems that it has another test set with other image id, so this 2ec3f1bb9, 3589adb90, d488c759a, aa05346ff, 57512b7f1 will not work. So it is need a script that get image id and form dumb .csv:<br>\nimport glob<br>\nimport os<br>\nDIR_IMAGES = '../input/hubmap-kidney-segmentation/test'<br>\nOUTPUT_FILE = './submission.csv'</p>\n<p>output_file_fid = open(OUTPUT_FILE, 'w')<br>\nline = 'id,predicted\\n'<br>\nprint(line)<br>\noutput_file_fid.write(line)</p>\n<p>files = glob.glob(DIR_IMAGES + '/*.tiff')<br>\nfor file_index in range(len(files)):<br>\n    file = files[file_index]<br>\n    file_base = os.path.basename(file)<br>\n    file_base_no_ext = os.path.splitext(file_base)[0]<br>\n    image_id = file_base_no_ext<br>\n    line = image_id + ',10 10' + '\\n'<br>\n    print(line)<br>\n    output_file_fid.write(line)</p>\n<p>output_file_fid.close()</p>\n<p>This code works and give score=0<br>\nAlso important to write id,predicted but not id,encoding</p>",
      "rawMarkdown": "I found the reason by miself.\nIt seems that it has another test set with other image id, so this 2ec3f1bb9, 3589adb90, d488c759a, aa05346ff, 57512b7f1 will not work. So it is need a script that get image id and form dumb .csv:\nimport glob\nimport os\nDIR_IMAGES = '../input/hubmap-kidney-segmentation/test'\nOUTPUT_FILE = './submission.csv'\n\noutput_file_fid = open(OUTPUT_FILE, 'w')\nline = 'id,predicted\\n'\nprint(line)\noutput_file_fid.write(line)\n\nfiles = glob.glob(DIR_IMAGES + '/*.tiff')\nfor file_index in range(len(files)):\n    file = files[file_index]\n    file_base = os.path.basename(file)\n    file_base_no_ext = os.path.splitext(file_base)[0]\n    image_id = file_base_no_ext\n    line = image_id + ',10 10' + '\\n'\n    print(line)\n    output_file_fid.write(line)\n    \n    \n    \noutput_file_fid.close()\n\nThis code works and give score=0\nAlso important to write id,predicted but not id,encoding",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1258327,
      "author_name": "vedenev",
      "author_url": "",
      "post_date": "03/31/2021 14:35:07",
      "content": "<p>I found the reason by miself.<br>\nIt seems that it has another test set with other image id, so this 2ec3f1bb9, 3589adb90, d488c759a, aa05346ff, 57512b7f1 will not work. So it is need a script that get image id and form dumb .csv:<br>\nimport glob<br>\nimport os<br>\nDIR_IMAGES = '../input/hubmap-kidney-segmentation/test'<br>\nOUTPUT_FILE = './submission.csv'</p>\n<p>output_file_fid = open(OUTPUT_FILE, 'w')<br>\nline = 'id,predicted\\n'<br>\nprint(line)<br>\noutput_file_fid.write(line)</p>\n<p>files = glob.glob(DIR_IMAGES + '/*.tiff')<br>\nfor file_index in range(len(files)):<br>\n    file = files[file_index]<br>\n    file_base = os.path.basename(file)<br>\n    file_base_no_ext = os.path.splitext(file_base)[0]<br>\n    image_id = file_base_no_ext<br>\n    line = image_id + ',10 10' + '\\n'<br>\n    print(line)<br>\n    output_file_fid.write(line)</p>\n<p>output_file_fid.close()</p>\n<p>This code works and give score=0<br>\nAlso important to write id,predicted but not id,encoding</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1257065": "I have Submission Scoring Error with this test submission:\nid,predicted\n2ec3f1bb9, 10, 10\n3589adb90, 10, 10\nd488c759a, 10, 10\naa05346ff, 10, 10\n57512b7f1, 10, 10\nWhy&",
    "1258327": "I found the reason by miself.\nIt seems that it has another test set with other image id, so this 2ec3f1bb9, 3589adb90, d488c759a, aa05346ff, 57512b7f1 will not work. So it is need a script that get image id and form dumb .csv:\nimport glob\nimport os\nDIR_IMAGES = '../input/hubmap-kidney-segmentation/test'\nOUTPUT_FILE = './submission.csv'\n\noutput_file_fid = open(OUTPUT_FILE, 'w')\nline = 'id,predicted\\n'\nprint(line)\noutput_file_fid.write(line)\n\nfiles = glob.glob(DIR_IMAGES + '/*.tiff')\nfor file_index in range(len(files)):\n    file = files[file_index]\n    file_base = os.path.basename(file)\n    file_base_no_ext = os.path.splitext(file_base)[0]\n    image_id = file_base_no_ext\n    line = image_id + ',10 10' + '\\n'\n    print(line)\n    output_file_fid.write(line)\n    \n    \n    \noutput_file_fid.close()\n\nThis code works and give score=0\nAlso important to write id,predicted but not id,encoding"
  },
  "source": "meta"
}