{
  "id": 354514,
  "title": "Is there a reason for this?",
  "url": "/competitions/rsna-2022-cervical-spine-fracture-detection/discussion/354514",
  "author_name": "Samantha Hassal",
  "post_date": "2022-09-22T15:54:58.402000",
  "votes": 3,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I’ve noticed that the user IDs you’ve listed in test.csv don’t correspond to the user IDs in the test directory. Was this a mistake or do the IDs in test.csv correspond to test cases the competition staff use internally?</p>",
  "messages": [
    {
      "id": 1950905,
      "postDate": "2022-09-22T15:54:58.403Z",
      "content": "<p>I’ve noticed that the user IDs you’ve listed in test.csv don’t correspond to the user IDs in the test directory. Was this a mistake or do the IDs in test.csv correspond to test cases the competition staff use internally?</p>",
      "rawMarkdown": "I’ve noticed that the user IDs you’ve listed in test.csv don’t correspond to the user IDs in the test directory. Was this a mistake or do the IDs in test.csv correspond to test cases the competition staff use internally?",
      "votes": 3
    },
    {
      "id": 1951030,
      "postDate": "2022-09-22T18:05:22.473Z",
      "content": "<p>I'm not sure why it is like this but you can debug the sample submission (ss) by using the following code:</p>\n<pre><code>if len(ss)==3:\n    # Fix mismatch with test_images folder\n    test_df = pd.DataFrame(columns = ['row_id','StudyInstanceUID','prediction_type'])\n    for i in ['1.2.826.0.1.3680043.22327','1.2.826.0.1.3680043.25399','1.2.826.0.1.3680043.5876']:\n        for j in ['C1','C2','C3','C4','C5','C6','C7','patient_overall']:\n            test_df = test_df.append({'row_id':i+'_'+j,'StudyInstanceUID':i,'prediction_type':j},ignore_index=True)\n\n    # Sample submission\n    ss = pd.DataFrame(test_df['row_id'])\n    ss['fractured'] = 0.5\n\n    display(test_df.head(3))\n</code></pre>",
      "rawMarkdown": "I'm not sure why it is like this but you can debug the sample submission (ss) by using the following code:\n\n```\nif len(ss)==3:\n    # Fix mismatch with test_images folder\n    test_df = pd.DataFrame(columns = ['row_id','StudyInstanceUID','prediction_type'])\n    for i in ['1.2.826.0.1.3680043.22327','1.2.826.0.1.3680043.25399','1.2.826.0.1.3680043.5876']:\n        for j in ['C1','C2','C3','C4','C5','C6','C7','patient_overall']:\n            test_df = test_df.append({'row_id':i+'_'+j,'StudyInstanceUID':i,'prediction_type':j},ignore_index=True)\n    \n    # Sample submission\n    ss = pd.DataFrame(test_df['row_id'])\n    ss['fractured'] = 0.5\n    \n    display(test_df.head(3))\n```\n"
    }
  ],
  "comments": [
    {
      "id": 1951030,
      "author_name": "Samuel Cortinhas",
      "author_url": "",
      "post_date": "2022-09-22T18:05:22.473000",
      "content": "<p>I'm not sure why it is like this but you can debug the sample submission (ss) by using the following code:</p>\n<pre><code>if len(ss)==3:\n    # Fix mismatch with test_images folder\n    test_df = pd.DataFrame(columns = ['row_id','StudyInstanceUID','prediction_type'])\n    for i in ['1.2.826.0.1.3680043.22327','1.2.826.0.1.3680043.25399','1.2.826.0.1.3680043.5876']:\n        for j in ['C1','C2','C3','C4','C5','C6','C7','patient_overall']:\n            test_df = test_df.append({'row_id':i+'_'+j,'StudyInstanceUID':i,'prediction_type':j},ignore_index=True)\n\n    # Sample submission\n    ss = pd.DataFrame(test_df['row_id'])\n    ss['fractured'] = 0.5\n\n    display(test_df.head(3))\n</code></pre>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1950905": "I’ve noticed that the user IDs you’ve listed in test.csv don’t correspond to the user IDs in the test directory. Was this a mistake or do the IDs in test.csv correspond to test cases the competition staff use internally?",
    "1951030": "I'm not sure why it is like this but you can debug the sample submission (ss) by using the following code:\n\n```\nif len(ss)==3:\n    # Fix mismatch with test_images folder\n    test_df = pd.DataFrame(columns = ['row_id','StudyInstanceUID','prediction_type'])\n    for i in ['1.2.826.0.1.3680043.22327','1.2.826.0.1.3680043.25399','1.2.826.0.1.3680043.5876']:\n        for j in ['C1','C2','C3','C4','C5','C6','C7','patient_overall']:\n            test_df = test_df.append({'row_id':i+'_'+j,'StudyInstanceUID':i,'prediction_type':j},ignore_index=True)\n    \n    # Sample submission\n    ss = pd.DataFrame(test_df['row_id'])\n    ss['fractured'] = 0.5\n    \n    display(test_df.head(3))\n```\n"
  }
}