{
  "id": 447825,
  "title": "CV vs LB Thread",
  "url": "/competitions/UBC-OCEAN/discussion/447825",
  "author_name": "Reacher",
  "post_date": "2023-10-17T11:46:31.099000",
  "votes": 11,
  "comment_count": 16,
  "views": 0,
  "content": "<p>Split: 5-StratifiedKFold </p>\n<table>\n<thead>\n<tr>\n<th>Model</th>\n<th>CV</th>\n<th>LB</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1 fold</td>\n<td>0.616</td>\n<td>0.27</td>\n</tr>\n<tr>\n<td>1 fold</td>\n<td>0.624</td>\n<td>0.28</td>\n</tr>\n<tr>\n<td>1 fold</td>\n<td>0.74</td>\n<td>0.28(better)</td>\n</tr>\n<tr>\n<td>5 folds</td>\n<td>0.799(mean)</td>\n<td>0.32</td>\n</tr>\n</tbody>\n</table>\n<p>Although the CV/LB gap is substantial, there is some correlation.<br>\nWhat does your CV/LB look like?</p>",
  "messages": [
    {
      "id": 2485741,
      "postDate": "2023-10-17T12:34:54.687Z",
      "content": "<p>A few things probably contirubiting:</p>\n<ol>\n<li>The <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446760\" target=\"_blank\">LB score seems to be off</a> by a few percent due to it calculating based on a non-existent 7th class.</li>\n<li>A little under 10% of the data has the <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/discussion/447063\" target=\"_blank\">wrong mask</a>, by my count 46 images in the train set are significantly off and shouldn't be used.  I'd assume about a bit under that amount to be off in the test set because there's fewer proportion of WSI's in the test set and all the errors seem to be in the WSI data.</li>\n<li>If 'other' class is not present in your CV you'll artificially have a higher score than the LB where 'other' is present (up to 14% penalty on current LB).</li>\n<li>The main challenge of the competition is to have out of distribution data in the test set so without using out of distribution data in train there will be a chronic cv vs lb gap</li>\n</ol>",
      "rawMarkdown": "A few things probably contirubiting:\n1. The [LB score seems to be off](https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446760) by a few percent due to it calculating based on a non-existent 7th class.\n2. A little under 10% of the data has the [wrong mask](https://www.kaggle.com/competitions/UBC-OCEAN/discussion/447063), by my count 46 images in the train set are significantly off and shouldn't be used.  I'd assume about a bit under that amount to be off in the test set because there's fewer proportion of WSI's in the test set and all the errors seem to be in the WSI data.\n3. If 'other' class is not present in your CV you'll artificially have a higher score than the LB where 'other' is present (up to 14% penalty on current LB).\n4. The main challenge of the competition is to have out of distribution data in the test set so without using out of distribution data in train there will be a chronic cv vs lb gap",
      "votes": 13,
      "replies": [
        {
          "id": 2485746,
          "postDate": "2023-10-17T12:39:17.893Z",
          "content": "<p>Great points</p>",
          "rawMarkdown": "Great points",
          "votes": 2
        },
        {
          "id": 2485781,
          "postDate": "2023-10-17T13:03:11.783Z",
          "content": "<p>Thank you for your comment.<br>\nYou've covered almost all issues and the necessary steps for success in this competition. <br>\nMuch appreciated. </p>",
          "rawMarkdown": "Thank you for your comment.\nYou've covered almost all issues and the necessary steps for success in this competition. \nMuch appreciated. "
        }
      ]
    },
    {
      "id": 2485700,
      "postDate": "2023-10-17T11:46:31.100Z",
      "content": "<p>Split: 5-StratifiedKFold </p>\n<table>\n<thead>\n<tr>\n<th>Model</th>\n<th>CV</th>\n<th>LB</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1 fold</td>\n<td>0.616</td>\n<td>0.27</td>\n</tr>\n<tr>\n<td>1 fold</td>\n<td>0.624</td>\n<td>0.28</td>\n</tr>\n<tr>\n<td>1 fold</td>\n<td>0.74</td>\n<td>0.28(better)</td>\n</tr>\n<tr>\n<td>5 folds</td>\n<td>0.799(mean)</td>\n<td>0.32</td>\n</tr>\n</tbody>\n</table>\n<p>Although the CV/LB gap is substantial, there is some correlation.<br>\nWhat does your CV/LB look like?</p>",
      "rawMarkdown": "Split: 5-StratifiedKFold \n| Model | CV | LB |\n| --- | --- | --- |\n| 1 fold|0.616  | 0.27 |\n| 1 fold |0.624 | 0.28 |\n| 1 fold |0.74 | 0.28(better) |\n| 5 folds |0.799(mean) | 0.32 |\n\nAlthough the CV/LB gap is substantial, there is some correlation.\nWhat does your CV/LB look like?",
      "votes": 11
    },
    {
      "id": 2485775,
      "postDate": "2023-10-17T12:57:20.443Z",
      "content": "<p>EfficientNetV2B0<br>\n1 / 10 fold<br>\nCV: 0.82 (5 classes only)<br>\nLB: 0.37 (after rescore: 0.43)</p>",
      "rawMarkdown": "EfficientNetV2B0\n1 / 10 fold\nCV: 0.82 (5 classes only)\nLB: 0.37 (after rescore: 0.43)",
      "votes": 3,
      "replies": [
        {
          "id": 2488463,
          "postDate": "2023-10-19T09:14:59.003Z",
          "content": "<p>That's really cool! If convinient, I wonder what is your model  input size  you use to resize high resolution images?</p>",
          "rawMarkdown": "That's really cool! If convinient, I wonder what is your model  input size  you use to resize high resolution images?",
          "replies": [
            {
              "id": 2488515,
              "postDate": "2023-10-19T09:48:42.767Z",
              "content": "<p>should be 1024 I guess🤔</p>",
              "rawMarkdown": "should be 1024 I guess🤔"
            },
            {
              "id": 2488802,
              "postDate": "2023-10-19T14:02:38.720Z",
              "content": "<p>恭喜你，答错了😄 <br>\nIt's 512.</p>",
              "rawMarkdown": "恭喜你，答错了😄 \nIt's 512.",
              "votes": 1
            },
            {
              "id": 2500846,
              "postDate": "2023-10-27T03:55:04.987Z",
              "content": "<p>using thumbnail images ?</p>",
              "rawMarkdown": "using thumbnail images ?"
            }
          ]
        },
        {
          "id": 2501454,
          "postDate": "2023-10-27T13:00:56.030Z",
          "content": "<p><a href=\"https://www.kaggle.com/wuliaokaola\" target=\"_blank\">@wuliaokaola</a> Hello, may I ask what assessment index your cv refers to</p>",
          "rawMarkdown": "@wuliaokaola Hello, may I ask what assessment index your cv refers to",
          "replies": [
            {
              "id": 2502070,
              "postDate": "2023-10-27T23:20:33.307Z",
              "content": "<p>It's <a href=\"http://www.kaggle.com/competitions/UBC-OCEAN/overview/evaluation\" target=\"_blank\">balanced accuracy</a>, the same as LB. </p>",
              "rawMarkdown": "It's [balanced accuracy](http://www.kaggle.com/competitions/UBC-OCEAN/overview/evaluation), the same as LB. "
            },
            {
              "id": 2502268,
              "postDate": "2023-10-28T04:49:52.143Z",
              "content": "<p>Hi, did you train with thumbnails images and a few WSI images</p>",
              "rawMarkdown": "Hi, did you train with thumbnails images and a few WSI images"
            },
            {
              "id": 2502350,
              "postDate": "2023-10-28T06:17:15.150Z",
              "content": "<p>I'm trying everything which can improve the score.</p>",
              "rawMarkdown": "I'm trying everything which can improve the score."
            },
            {
              "id": 2502367,
              "postDate": "2023-10-28T06:35:42.847Z",
              "content": "<p>May I ask if you have adopted the training method of cutting patches from WSI, or is your current score still based on training with WSI thumbnails + TMA?</p>",
              "rawMarkdown": "May I ask if you have adopted the training method of cutting patches from WSI, or is your current score still based on training with WSI thumbnails + TMA?",
              "votes": 1
            }
          ]
        }
      ]
    },
    {
      "id": 2485704,
      "postDate": "2023-10-17T11:53:11.553Z",
      "content": "<p>It's not correlating for me well. Also it changes upon the data I use (whether I use tiles as additional data or not)<br>\nMy best submission yet (on the lb) is from 1 fold, cv = 0.51 and lb = 0.33<br>\nBut weirdly, with change in model/data. The same fold with cv = 0.59 has lb = 0.26 .<br>\nI think it'll take some time for our cv vs lb to stabilize </p>",
      "rawMarkdown": "It's not correlating for me well. Also it changes upon the data I use (whether I use tiles as additional data or not)\nMy best submission yet (on the lb) is from 1 fold, cv = 0.51 and lb = 0.33\nBut weirdly, with change in model/data. The same fold with cv = 0.59 has lb = 0.26 .\nI think it'll take some time for our cv vs lb to stabilize ",
      "votes": 4
    },
    {
      "id": 2485712,
      "postDate": "2023-10-17T11:58:27.967Z",
      "content": "<p>Do you predict or overwrite any Other class?</p>",
      "rawMarkdown": "Do you predict or overwrite any Other class?",
      "votes": 1,
      "replies": [
        {
          "id": 2485723,
          "postDate": "2023-10-17T12:07:25.417Z",
          "content": "<p>Nope, I'm just training on classes present in the training dataset</p>",
          "rawMarkdown": "Nope, I'm just training on classes present in the training dataset"
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 2485741,
      "author_name": "David Austin",
      "author_url": "",
      "post_date": "2023-10-17T12:34:54.687000",
      "content": "<p>A few things probably contirubiting:</p>\n<ol>\n<li>The <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446760\" target=\"_blank\">LB score seems to be off</a> by a few percent due to it calculating based on a non-existent 7th class.</li>\n<li>A little under 10% of the data has the <a href=\"https://www.kaggle.com/competitions/UBC-OCEAN/discussion/447063\" target=\"_blank\">wrong mask</a>, by my count 46 images in the train set are significantly off and shouldn't be used.  I'd assume about a bit under that amount to be off in the test set because there's fewer proportion of WSI's in the test set and all the errors seem to be in the WSI data.</li>\n<li>If 'other' class is not present in your CV you'll artificially have a higher score than the LB where 'other' is present (up to 14% penalty on current LB).</li>\n<li>The main challenge of the competition is to have out of distribution data in the test set so without using out of distribution data in train there will be a chronic cv vs lb gap</li>\n</ol>",
      "votes": 13,
      "replies": [
        {
          "id": 2485746,
          "author_name": "pjmathematician",
          "author_url": "",
          "post_date": "2023-10-17T12:39:17.893000",
          "content": "<p>Great points</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 2485781,
          "author_name": "Reacher",
          "author_url": "",
          "post_date": "2023-10-17T13:03:11.783000",
          "content": "<p>Thank you for your comment.<br>\nYou've covered almost all issues and the necessary steps for success in this competition. <br>\nMuch appreciated. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 2485775,
      "author_name": "Johnny Lee",
      "author_url": "",
      "post_date": "2023-10-17T12:57:20.443000",
      "content": "<p>EfficientNetV2B0<br>\n1 / 10 fold<br>\nCV: 0.82 (5 classes only)<br>\nLB: 0.37 (after rescore: 0.43)</p>",
      "votes": 3,
      "replies": [
        {
          "id": 2488463,
          "author_name": "Time Master",
          "author_url": "",
          "post_date": "2023-10-19T09:14:59.003000",
          "content": "<p>That's really cool! If convinient, I wonder what is your model  input size  you use to resize high resolution images?</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2488515,
              "author_name": "Seeing Times",
              "author_url": "",
              "post_date": "2023-10-19T09:48:42.767000",
              "content": "<p>should be 1024 I guess🤔</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2488802,
              "author_name": "Johnny Lee",
              "author_url": "",
              "post_date": "2023-10-19T14:02:38.720000",
              "content": "<p>恭喜你，答错了😄 <br>\nIt's 512.</p>",
              "votes": 1,
              "replies": []
            },
            {
              "id": 2500846,
              "author_name": "Sonu Jha",
              "author_url": "",
              "post_date": "2023-10-27T03:55:04.987000",
              "content": "<p>using thumbnail images ?</p>",
              "votes": 0,
              "replies": []
            }
          ]
        },
        {
          "id": 2501454,
          "author_name": "allen wang",
          "author_url": "",
          "post_date": "2023-10-27T13:00:56.030000",
          "content": "<p><a href=\"https://www.kaggle.com/wuliaokaola\" target=\"_blank\">@wuliaokaola</a> Hello, may I ask what assessment index your cv refers to</p>",
          "votes": 0,
          "replies": [
            {
              "id": 2502070,
              "author_name": "Johnny Lee",
              "author_url": "",
              "post_date": "2023-10-27T23:20:33.307000",
              "content": "<p>It's <a href=\"http://www.kaggle.com/competitions/UBC-OCEAN/overview/evaluation\" target=\"_blank\">balanced accuracy</a>, the same as LB. </p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2502268,
              "author_name": "allen wang",
              "author_url": "",
              "post_date": "2023-10-28T04:49:52.143000",
              "content": "<p>Hi, did you train with thumbnails images and a few WSI images</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2502350,
              "author_name": "Johnny Lee",
              "author_url": "",
              "post_date": "2023-10-28T06:17:15.150000",
              "content": "<p>I'm trying everything which can improve the score.</p>",
              "votes": 0,
              "replies": []
            },
            {
              "id": 2502367,
              "author_name": "Huang Jin Feng",
              "author_url": "",
              "post_date": "2023-10-28T06:35:42.847000",
              "content": "<p>May I ask if you have adopted the training method of cutting patches from WSI, or is your current score still based on training with WSI thumbnails + TMA?</p>",
              "votes": 1,
              "replies": []
            }
          ]
        }
      ]
    },
    {
      "id": 2485704,
      "author_name": "pjmathematician",
      "author_url": "",
      "post_date": "2023-10-17T11:53:11.553000",
      "content": "<p>It's not correlating for me well. Also it changes upon the data I use (whether I use tiles as additional data or not)<br>\nMy best submission yet (on the lb) is from 1 fold, cv = 0.51 and lb = 0.33<br>\nBut weirdly, with change in model/data. The same fold with cv = 0.59 has lb = 0.26 .<br>\nI think it'll take some time for our cv vs lb to stabilize </p>",
      "votes": 4,
      "replies": []
    },
    {
      "id": 2485712,
      "author_name": "Gunes Evitan",
      "author_url": "",
      "post_date": "2023-10-17T11:58:27.967000",
      "content": "<p>Do you predict or overwrite any Other class?</p>",
      "votes": 1,
      "replies": [
        {
          "id": 2485723,
          "author_name": "Reacher",
          "author_url": "",
          "post_date": "2023-10-17T12:07:25.417000",
          "content": "<p>Nope, I'm just training on classes present in the training dataset</p>",
          "votes": 0,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "2485741": "A few things probably contirubiting:\n1. The [LB score seems to be off](https://www.kaggle.com/competitions/UBC-OCEAN/discussion/446760) by a few percent due to it calculating based on a non-existent 7th class.\n2. A little under 10% of the data has the [wrong mask](https://www.kaggle.com/competitions/UBC-OCEAN/discussion/447063), by my count 46 images in the train set are significantly off and shouldn't be used.  I'd assume about a bit under that amount to be off in the test set because there's fewer proportion of WSI's in the test set and all the errors seem to be in the WSI data.\n3. If 'other' class is not present in your CV you'll artificially have a higher score than the LB where 'other' is present (up to 14% penalty on current LB).\n4. The main challenge of the competition is to have out of distribution data in the test set so without using out of distribution data in train there will be a chronic cv vs lb gap",
    "2485700": "Split: 5-StratifiedKFold \n| Model | CV | LB |\n| --- | --- | --- |\n| 1 fold|0.616  | 0.27 |\n| 1 fold |0.624 | 0.28 |\n| 1 fold |0.74 | 0.28(better) |\n| 5 folds |0.799(mean) | 0.32 |\n\nAlthough the CV/LB gap is substantial, there is some correlation.\nWhat does your CV/LB look like?",
    "2485775": "EfficientNetV2B0\n1 / 10 fold\nCV: 0.82 (5 classes only)\nLB: 0.37 (after rescore: 0.43)",
    "2485704": "It's not correlating for me well. Also it changes upon the data I use (whether I use tiles as additional data or not)\nMy best submission yet (on the lb) is from 1 fold, cv = 0.51 and lb = 0.33\nBut weirdly, with change in model/data. The same fold with cv = 0.59 has lb = 0.26 .\nI think it'll take some time for our cv vs lb to stabilize ",
    "2485712": "Do you predict or overwrite any Other class?"
  }
}