{
  "id": 449079,
  "title": "Thumbnails are not provided for test TMAs?",
  "url": "/competitions/UBC-OCEAN/discussion/449079",
  "author_name": "fam_taro",
  "post_date": "2023-10-23T02:46:37.381000",
  "votes": 14,
  "comment_count": 11,
  "views": 0,
  "content": "<p><a href=\"https://www.kaggle.com/masadia\" target=\"_blank\">@masadia</a> <br>\nIn the <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/data\" target=\"_blank\">Dataset Description</a>, <code>[train/test]_thumbnails</code> is defined as follows.</p>\n<blockquote>\n  <p>[train/test]_thumbnails A folder containing smaller .png copies of the whole slide images. Thumbnails are not provided for TMAs.</p>\n</blockquote>\n<p>If this is true, we can determine if test sample is TMA or not by checking this directory.</p>\n<p>But test.csv does not have an is_tma column. Is there a reason for this? Or do some test TMA images have thumbnail images? </p>\n<p>P.S.</p>\n<p>I have published a <a href=\"https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail/notebook\" target=\"_blank\">notebook</a> for probing this.</p>",
  "messages": [
    {
      "id": 2492907,
      "postDate": "2023-10-23T02:46:37.380Z",
      "content": "<p><a href=\"https://www.kaggle.com/masadia\" target=\"_blank\">@masadia</a> <br>\nIn the <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/data\" target=\"_blank\">Dataset Description</a>, <code>[train/test]_thumbnails</code> is defined as follows.</p>\n<blockquote>\n  <p>[train/test]_thumbnails A folder containing smaller .png copies of the whole slide images. Thumbnails are not provided for TMAs.</p>\n</blockquote>\n<p>If this is true, we can determine if test sample is TMA or not by checking this directory.</p>\n<p>But test.csv does not have an is_tma column. Is there a reason for this? Or do some test TMA images have thumbnail images? </p>\n<p>P.S.</p>\n<p>I have published a <a href=\"https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail/notebook\" target=\"_blank\">notebook</a> for probing this.</p>",
      "rawMarkdown": "@masadia \nIn the [Dataset Description](https://www.kaggle.com/competitions/UBC-OCEAN/data), `[train/test]_thumbnails` is defined as follows.\n\n> [train/test]_thumbnails A folder containing smaller .png copies of the whole slide images. Thumbnails are not provided for TMAs.\n\nIf this is true, we can determine if test sample is TMA or not by checking this directory.\n\nBut test.csv does not have an is_tma column. Is there a reason for this? Or do some test TMA images have thumbnail images? \n\nP.S.\n\nI have published a [notebook](https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail/notebook) for probing this.",
      "votes": 14
    },
    {
      "id": 2500289,
      "postDate": "2023-10-26T15:13:57Z",
      "content": "<p>I find all the hidden test files now have thumbnails. Has there been an update to the test set?</p>",
      "rawMarkdown": "I find all the hidden test files now have thumbnails. Has there been an update to the test set?",
      "votes": 5,
      "replies": [
        {
          "id": 2500331,
          "postDate": "2023-10-26T15:31:03.953Z",
          "content": "<p>It was probably there from the beginning.<br>\nHowever, this is different from dataset description. So I would like an additional announcement from organizers.</p>",
          "rawMarkdown": "It was probably there from the beginning.\nHowever, this is different from dataset description. So I would like an additional announcement from organizers.",
          "votes": 3
        }
      ]
    },
    {
      "id": 2493088,
      "postDate": "2023-10-23T06:40:21.410Z",
      "content": "<p>That is correct. You can create the same <code>is_tma</code> column by simply doing this</p>\n<pre><code>df_test[] = \ndf_test.loc[df_test[].isin(test_thumbnails), ] = \n</code></pre>\n<p>It is also mentioned <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446102\" target=\"_blank\">here</a> but it's not clarified by the organizers or Kaggle team.</p>",
      "rawMarkdown": "That is correct. You can create the same `is_tma` column by simply doing this\n```python\ndf_test['is_tma'] = True\ndf_test.loc[df_test['image_id'].isin(test_thumbnails), 'is_tma'] = False\n```\n\nIt is also mentioned [here](https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446102) but it's not clarified by the organizers or Kaggle team.",
      "votes": 5,
      "replies": [
        {
          "id": 2493106,
          "postDate": "2023-10-23T06:53:52.660Z",
          "content": "<p>I understand that.<br>\nMy question here is whether this rule is guaranteed even with Unseen test data.</p>\n<p>The TMA determination by thumbnail dir will be meaningless if there is a TMA test sample with a thumbnail.<br>\nI throw this discussion because I was hoping that if such a sample exists, it would be announced in advance.</p>",
          "rawMarkdown": "I understand that.\nMy question here is whether this rule is guaranteed even with Unseen test data.\n\nThe TMA determination by thumbnail dir will be meaningless if there is a TMA test sample with a thumbnail.\nI throw this discussion because I was hoping that if such a sample exists, it would be announced in advance.",
          "votes": 4,
          "replies": [
            {
              "id": 2493113,
              "postDate": "2023-10-23T06:58:47.610Z",
              "content": "<p>I also want to know that. Tagging <a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> and <a href=\"https://www.kaggle.com/masadia\" target=\"_blank\">@masadia</a> hope to get an answer.</p>",
              "rawMarkdown": "I also want to know that. Tagging @sohier and @masadia hope to get an answer.",
              "votes": 2
            },
            {
              "id": 2517867,
              "postDate": "2023-11-08T20:06:07.057Z",
              "content": "<p><a href=\"https://www.kaggle.com/michaeldiazstewart\" target=\"_blank\">@michaeldiazstewart</a>, Could you please provide some insight here?</p>\n<p>It would be good to know if we have access to <code>is_tma</code> information when evaluating against the test set.</p>",
              "rawMarkdown": "@michaeldiazstewart, Could you please provide some insight here?\n\nIt would be good to know if we have access to `is_tma` information when evaluating against the test set."
            },
            {
              "id": 2562050,
              "postDate": "2023-12-15T04:14:10.990Z",
              "content": "<p>did you figure out the TMA in thumbnail thing? If they are in thumbnail it would be so weird since they are not in the training thumbnail data. I did some testing and found images from the test dataset are in thumbnail folder. So either is no TMA in the public test data or they also have a thumbnail (and we don't know if they are resized or the original size)</p>",
              "rawMarkdown": "did you figure out the TMA in thumbnail thing? If they are in thumbnail it would be so weird since they are not in the training thumbnail data. I did some testing and found images from the test dataset are in thumbnail folder. So either is no TMA in the public test data or they also have a thumbnail (and we don't know if they are resized or the original size)",
              "votes": 1
            },
            {
              "id": 2562325,
              "postDate": "2023-12-15T08:54:35.877Z",
              "content": "<p>from other discussion, the general solution to this is if image size is less then 5000px, it is TMA</p>",
              "rawMarkdown": "from other discussion, the general solution to this is if image size is less then 5000px, it is TMA",
              "votes": 2
            }
          ]
        }
      ]
    },
    {
      "id": 2493255,
      "postDate": "2023-10-23T08:52:43.970Z",
      "content": "<p>Yes, you brought up the question I also wanted to ask. If TMA indeed doesn't have thumbnails, and we can determine whether it's TMA through the directory, then it seems this task has become much clearer.</p>",
      "rawMarkdown": "Yes, you brought up the question I also wanted to ask. If TMA indeed doesn't have thumbnails, and we can determine whether it's TMA through the directory, then it seems this task has become much clearer.",
      "votes": 1
    },
    {
      "id": 2499703,
      "postDate": "2023-10-26T07:31:28.243Z",
      "content": "<p>You can easily create them in the inference time, see for example:<br>\n<a href=\"https://www.kaggle.com/code/jirkaborovec/cancer-subtype-lightning-torch-inference\" target=\"_blank\">https://www.kaggle.com/code/jirkaborovec/cancer-subtype-lightning-torch-inference</a></p>",
      "rawMarkdown": "You can easily create them in the inference time, see for example:\nhttps://www.kaggle.com/code/jirkaborovec/cancer-subtype-lightning-torch-inference"
    },
    {
      "id": 2497849,
      "postDate": "2023-10-25T00:37:31.597Z",
      "rawMarkdown": "",
      "isDeleted": true
    }
  ],
  "comments": [
    {
      "id": 2500289,
      "author_name": "sheep",
      "author_url": "",
      "post_date": "2023-10-26T15:13:57",
      "content": "<p>I find all the hidden test files now have thumbnails. Has there been an update to the test set?</p>",
      "votes": 5,
      "replies": [
        {
          "id": 2500331,
          "author_name": "fam_taro",
          "author_url": "",
          "post_date": "2023-10-26T15:31:03.953000",
          "content": "<p>It was probably there from the beginning.<br>\nHowever, this is different from dataset description. So I would like an additional announcement from organizers.</p>",
          "votes": 3,
          "replies": []
        }
      ]
    },
    {
      "id": 2493088,
      "author_name": "Gunes Evitan",
      "author_url": "",
      "post_date": "2023-10-23T06:40:21.410000",
      "content": "<p>That is correct. You can create the same <code>is_tma</code> column by simply doing this</p>\n<pre><code>df_test[] = \ndf_test.loc[df_test[].isin(test_thumbnails), ] = \n</code></pre>\n<p>It is also mentioned <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446102\" target=\"_blank\">here</a> but it's not clarified by the organizers or Kaggle team.</p>",
      "votes": 5,
      "replies": [
        {
          "id": 2493106,
          "author_name": "fam_taro",
          "author_url": "",
          "post_date": "2023-10-23T06:53:52.660000",
          "content": "<p>I understand that.<br>\nMy question here is whether this rule is guaranteed even with Unseen test data.</p>\n<p>The TMA determination by thumbnail dir will be meaningless if there is a TMA test sample with a thumbnail.<br>\nI throw this discussion because I was hoping that if such a sample exists, it would be announced in advance.</p>",
          "votes": 4,
          "replies": [
            {
              "id": 2493113,
              "author_name": "Gunes Evitan",
              "author_url": "",
              "post_date": "2023-10-23T06:58:47.610000",
              "content": "<p>I also want to know that. Tagging <a href=\"https://www.kaggle.com/sohier\" target=\"_blank\">@sohier</a> and <a href=\"https://www.kaggle.com/masadia\" target=\"_blank\">@masadia</a> hope to get an answer.</p>",
              "votes": 2,
              "replies": []
            },
            {
              "id": 2517867,
              "author_name": "Bartley",
              "author_url": "",
              "post_date": "2023-11-08T20:06:07.057000",
              "content": "<p><a href=\"https://www.kaggle.com/michaeldiazstewart\" target=\"_blank\">@michaeldiazstewart</a>, Could you please provide some insight here?</p>\n<p>It would be good to know if we have access to <code>is_tma</code> information when evaluating against the test set.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2562050,
              "author_name": "Yoobin",
              "author_url": "",
              "post_date": "2023-12-15T04:14:10.990000",
              "content": "<p>did you figure out the TMA in thumbnail thing? If they are in thumbnail it would be so weird since they are not in the training thumbnail data. I did some testing and found images from the test dataset are in thumbnail folder. So either is no TMA in the public test data or they also have a thumbnail (and we don't know if they are resized or the original size)</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2562325,
              "author_name": "Jirka",
              "author_url": "",
              "post_date": "2023-12-15T08:54:35.877000",
              "content": "<p>from other discussion, the general solution to this is if image size is less then 5000px, it is TMA</p>",
              "votes": 2,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2493255,
      "author_name": "Huang Jin Feng",
      "author_url": "",
      "post_date": "2023-10-23T08:52:43.970000",
      "content": "<p>Yes, you brought up the question I also wanted to ask. If TMA indeed doesn't have thumbnails, and we can determine whether it's TMA through the directory, then it seems this task has become much clearer.</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 2499703,
      "author_name": "Jirka",
      "author_url": "",
      "post_date": "2023-10-26T07:31:28.243000",
      "content": "<p>You can easily create them in the inference time, see for example:<br>\n<a href=\"https://www.kaggle.com/code/jirkaborovec/cancer-subtype-lightning-torch-inference\" target=\"_blank\">https://www.kaggle.com/code/jirkaborovec/cancer-subtype-lightning-torch-inference</a></p>",
      "votes": 0,
      "replies": []
    },
    {
      "id": 2497849,
      "author_name": "",
      "author_url": "",
      "post_date": "2023-10-25T00:37:31.597000",
      "content": "",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2492907": "@masadia \nIn the [Dataset Description](https://www.kaggle.com/competitions/UBC-OCEAN/data), `[train/test]_thumbnails` is defined as follows.\n\n> [train/test]_thumbnails A folder containing smaller .png copies of the whole slide images. Thumbnails are not provided for TMAs.\n\nIf this is true, we can determine if test sample is TMA or not by checking this directory.\n\nBut test.csv does not have an is_tma column. Is there a reason for this? Or do some test TMA images have thumbnail images? \n\nP.S.\n\nI have published a [notebook](https://www.kaggle.com/code/yukkyo/probing-all-test-sample-have-thumbnail/notebook) for probing this.",
    "2500289": "I find all the hidden test files now have thumbnails. Has there been an update to the test set?",
    "2493088": "That is correct. You can create the same `is_tma` column by simply doing this\n```python\ndf_test['is_tma'] = True\ndf_test.loc[df_test['image_id'].isin(test_thumbnails), 'is_tma'] = False\n```\n\nIt is also mentioned [here](https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446102) but it's not clarified by the organizers or Kaggle team.",
    "2493255": "Yes, you brought up the question I also wanted to ask. If TMA indeed doesn't have thumbnails, and we can determine whether it's TMA through the directory, then it seems this task has become much clearer.",
    "2499703": "You can easily create them in the inference time, see for example:\nhttps://www.kaggle.com/code/jirkaborovec/cancer-subtype-lightning-torch-inference",
    "2497849": ""
  }
}