{
  "id": 220722,
  "title": "Should've Trusted our CV",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/220722",
  "author_name": "",
  "post_date": "2021-02-19T09:47:15.491121800Z",
  "votes": 7,
  "comment_count": 9,
  "views": 0,
  "content": "<p>This is 2nd medal for our team <code>RTX 4090</code>[ <a href=\"https://www.kaggle.com/zaber666\" target=\"_blank\">@zaber666</a> <a href=\"https://www.kaggle.com/artemenon\" target=\"_blank\">@artemenon</a> <a href=\"https://www.kaggle.com/nexh98\" target=\"_blank\">@nexh98</a> <a href=\"https://www.kaggle.com/awsaf49\" target=\"_blank\">@awsaf49</a>] . In this last few days we were so desperate to boost our <strong>public lb</strong> that we, unfortunately underestimated our <strong>CV</strong> which cost us a silver medal. Our best model had a score  <strong>public lb</strong>:<code>0.897</code> and <strong>CV</strong>:<code>0.8988</code> but <strong>private lb</strong>:<code>0.899</code>. I don't know why after so much experiment we were having a hard time getting <code>0.90+</code> in <strong>public lb</strong> whereas people were getting that margin quite easily. That's why we chose models having moderate score in both <strong>public lb</strong> and <strong>CV</strong> which got us a <strong>bronze</strong> medal. I wish we didn't underestimate our <strong>CV</strong>.<br>\n<strong>lesson:</strong> Don't underestimate your <strong>CV</strong>🤕</p>",
  "messages": [
    {
      "id": "1210257",
      "postDate": "02/19/2021 09:47:15",
      "content": "<p>This is 2nd medal for our team <code>RTX 4090</code>[ <a href=\"https://www.kaggle.com/zaber666\" target=\"_blank\">@zaber666</a> <a href=\"https://www.kaggle.com/artemenon\" target=\"_blank\">@artemenon</a> <a href=\"https://www.kaggle.com/nexh98\" target=\"_blank\">@nexh98</a> <a href=\"https://www.kaggle.com/awsaf49\" target=\"_blank\">@awsaf49</a>] . In this last few days we were so desperate to boost our <strong>public lb</strong> that we, unfortunately underestimated our <strong>CV</strong> which cost us a silver medal. Our best model had a score  <strong>public lb</strong>:<code>0.897</code> and <strong>CV</strong>:<code>0.8988</code> but <strong>private lb</strong>:<code>0.899</code>. I don't know why after so much experiment we were having a hard time getting <code>0.90+</code> in <strong>public lb</strong> whereas people were getting that margin quite easily. That's why we chose models having moderate score in both <strong>public lb</strong> and <strong>CV</strong> which got us a <strong>bronze</strong> medal. I wish we didn't underestimate our <strong>CV</strong>.<br>\n<strong>lesson:</strong> Don't underestimate your <strong>CV</strong>🤕</p>",
      "rawMarkdown": "This is 2nd medal for our team `RTX 4090`[ @zaber666 @artemenon @nexh98 @awsaf49] . In this last few days we were so desperate to boost our **public lb** that we, unfortunately underestimated our **CV** which cost us a silver medal. Our best model had a score  **public lb**:`0.897` and **CV**:`0.8988` but **private lb**:`0.899`. I don't know why after so much experiment we were having a hard time getting `0.90+` in **public lb** whereas people were getting that margin quite easily. That's why we chose models having moderate score in both **public lb** and **CV** which got us a **bronze** medal. I wish we didn't underestimate our **CV**.\n**lesson:** Don't underestimate your **CV**🤕",
      "votes": null
    },
    {
      "id": "1210260",
      "postDate": "02/19/2021 09:52:10",
      "content": "<p>yeah our best CV submission scored 0.897 on public but 0.901 on private<strong>(didn't select it)</strong></p>\n<p>probably it could take us into gold zone :(</p>",
      "rawMarkdown": "yeah our best CV submission scored 0.897 on public but 0.901 on private**(didn't select it)**\n\nprobably it could take us into gold zone :(",
      "votes": null
    },
    {
      "id": "1210263",
      "postDate": "02/19/2021 09:56:01",
      "content": "<p>☹️  Vai, for a moment we thought there won't be any shake-up.</p>",
      "rawMarkdown": "☹️  Vai, for a moment we thought there won't be any shake-up.",
      "votes": null
    },
    {
      "id": "1210273",
      "postDate": "02/19/2021 10:03:57",
      "content": "<p>My best cv was (5 folds) 0.904, 0.901, 0.905, 0.903, 0.900 , trusting it costed me 1100 places shake down 😂, does anyone of you experienced the same phenomenon? I selected one highest LB and one highest CV, but didn't work for me…</p>",
      "rawMarkdown": "My best cv was (5 folds) 0.904, 0.901, 0.905, 0.903, 0.900 , trusting it costed me 1100 places shake down 😂, does anyone of you experienced the same phenomenon? I selected one highest LB and one highest CV, but didn't work for me...",
      "votes": null
    },
    {
      "id": "1210275",
      "postDate": "02/19/2021 10:06:56",
      "content": "<p>I think it might be due to <strong>validation scheme</strong> I'm really curious about your result. </p>",
      "rawMarkdown": "I think it might be due to **validation scheme** I'm really curious about your result.",
      "votes": null
    },
    {
      "id": "1210362",
      "postDate": "02/19/2021 11:28:54",
      "content": "<p>I trusted CV and didn’t select best LB sub. Missed price money. I don’t think we can trust anything in this competition. Luck is all we need lol.</p>",
      "rawMarkdown": "I trusted CV and didn’t select best LB sub. Missed price money. I don’t think we can trust anything in this competition. Luck is all we need lol.",
      "votes": null
    },
    {
      "id": "1210415",
      "postDate": "02/19/2021 12:15:31",
      "content": "<p>But First place team stayed in their initial position so I'm guessing it's not all about luck</p>",
      "rawMarkdown": "But First place team stayed in their initial position so I'm guessing it's not all about luck",
      "votes": null
    },
    {
      "id": "1210856",
      "postDate": "02/19/2021 18:42:29",
      "content": "<p>Hey mate, I used Stratified k-fold , with k=5, but my best models were mainly selected from the second fold, with seed 42, i.e. 0.904 and 0.905 were selected from that fold, which means I did epoch-wise blending also. The final outcome was simple averaging. Maybe i didn't pick proper loss function, i chose the Early Layer Regularization (ELR) loss. I used 5 light TTAs (horizontal filp, vertical flip, transpose, and random resized crop, while including the original image also in the tta). I didn't resize the images but i did center crops in the tta and in the validation augmentations, while in the train augmentations i used random resized crops. What am i missing here, maybe I did something wrong?<br>\nCheers.</p>",
      "rawMarkdown": "Hey mate, I used Stratified k-fold , with k=5, but my best models were mainly selected from the second fold, with seed 42, i.e. 0.904 and 0.905 were selected from that fold, which means I did epoch-wise blending also. The final outcome was simple averaging. Maybe i didn't pick proper loss function, i chose the Early Layer Regularization (ELR) loss. I used 5 light TTAs (horizontal filp, vertical flip, transpose, and random resized crop, while including the original image also in the tta). I didn't resize the images but i did center crops in the tta and in the validation augmentations, while in the train augmentations i used random resized crops. What am i missing here, maybe I did something wrong?\nCheers.",
      "votes": null
    },
    {
      "id": "1210864",
      "postDate": "02/19/2021 19:02:41",
      "content": "<p>Your ensemble technique <code>my best models were mainly selected from the second fold</code> seems a bit strange. Don't we take an ensemble of all the folds? Taking multiple models from the same fold may create some bias.</p>",
      "rawMarkdown": "Your ensemble technique `my best models were mainly selected from the second fold` seems a bit strange. Don't we take an ensemble of all the folds? Taking multiple models from the same fold may create some bias.",
      "votes": null
    },
    {
      "id": "1210872",
      "postDate": "02/19/2021 19:14:27",
      "content": "<p>Actually yea, I also took the remaining 3 models from fold1, fold3 and fold 4, while i didn't use fold 5 since it gave me quite lower cv. Maybe that's the case? There is quite similar idea by ensembling some models from the same fold: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/220752\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/220752</a>. I am also doubting this random resized crops in the TTA, but it gave me significant boost of the LB , by 0.005 …</p>",
      "rawMarkdown": "Actually yea, I also took the remaining 3 models from fold1, fold3 and fold 4, while i didn't use fold 5 since it gave me quite lower cv. Maybe that's the case? There is quite similar idea by ensembling some models from the same fold: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/220752. I am also doubting this random resized crops in the TTA, but it gave me significant boost of the LB , by 0.005 ...",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1210260,
      "author_name": "mobassir",
      "author_url": "",
      "post_date": "02/19/2021 09:52:10",
      "content": "<p>yeah our best CV submission scored 0.897 on public but 0.901 on private<strong>(didn't select it)</strong></p>\n<p>probably it could take us into gold zone :(</p>",
      "votes": null,
      "replies": [
        {
          "id": 1210263,
          "author_name": "awsaf49",
          "author_url": "",
          "post_date": "02/19/2021 09:56:01",
          "content": "<p>☹️  Vai, for a moment we thought there won't be any shake-up.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210362,
          "author_name": "underwearfitting",
          "author_url": "",
          "post_date": "02/19/2021 11:28:54",
          "content": "<p>I trusted CV and didn’t select best LB sub. Missed price money. I don’t think we can trust anything in this competition. Luck is all we need lol.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210415,
          "author_name": "awsaf49",
          "author_url": "",
          "post_date": "02/19/2021 12:15:31",
          "content": "<p>But First place team stayed in their initial position so I'm guessing it's not all about luck</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1210273,
      "author_name": "marjan1111",
      "author_url": "",
      "post_date": "02/19/2021 10:03:57",
      "content": "<p>My best cv was (5 folds) 0.904, 0.901, 0.905, 0.903, 0.900 , trusting it costed me 1100 places shake down 😂, does anyone of you experienced the same phenomenon? I selected one highest LB and one highest CV, but didn't work for me…</p>",
      "votes": null,
      "replies": [
        {
          "id": 1210275,
          "author_name": "awsaf49",
          "author_url": "",
          "post_date": "02/19/2021 10:06:56",
          "content": "<p>I think it might be due to <strong>validation scheme</strong> I'm really curious about your result. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210856,
          "author_name": "marjan1111",
          "author_url": "",
          "post_date": "02/19/2021 18:42:29",
          "content": "<p>Hey mate, I used Stratified k-fold , with k=5, but my best models were mainly selected from the second fold, with seed 42, i.e. 0.904 and 0.905 were selected from that fold, which means I did epoch-wise blending also. The final outcome was simple averaging. Maybe i didn't pick proper loss function, i chose the Early Layer Regularization (ELR) loss. I used 5 light TTAs (horizontal filp, vertical flip, transpose, and random resized crop, while including the original image also in the tta). I didn't resize the images but i did center crops in the tta and in the validation augmentations, while in the train augmentations i used random resized crops. What am i missing here, maybe I did something wrong?<br>\nCheers.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210864,
          "author_name": "awsaf49",
          "author_url": "",
          "post_date": "02/19/2021 19:02:41",
          "content": "<p>Your ensemble technique <code>my best models were mainly selected from the second fold</code> seems a bit strange. Don't we take an ensemble of all the folds? Taking multiple models from the same fold may create some bias.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1210872,
          "author_name": "marjan1111",
          "author_url": "",
          "post_date": "02/19/2021 19:14:27",
          "content": "<p>Actually yea, I also took the remaining 3 models from fold1, fold3 and fold 4, while i didn't use fold 5 since it gave me quite lower cv. Maybe that's the case? There is quite similar idea by ensembling some models from the same fold: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/220752\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/220752</a>. I am also doubting this random resized crops in the TTA, but it gave me significant boost of the LB , by 0.005 …</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1210257": "This is 2nd medal for our team `RTX 4090`[ @zaber666 @artemenon @nexh98 @awsaf49] . In this last few days we were so desperate to boost our **public lb** that we, unfortunately underestimated our **CV** which cost us a silver medal. Our best model had a score  **public lb**:`0.897` and **CV**:`0.8988` but **private lb**:`0.899`. I don't know why after so much experiment we were having a hard time getting `0.90+` in **public lb** whereas people were getting that margin quite easily. That's why we chose models having moderate score in both **public lb** and **CV** which got us a **bronze** medal. I wish we didn't underestimate our **CV**.\n**lesson:** Don't underestimate your **CV**🤕",
    "1210260": "yeah our best CV submission scored 0.897 on public but 0.901 on private**(didn't select it)**\n\nprobably it could take us into gold zone :(",
    "1210263": "☹️  Vai, for a moment we thought there won't be any shake-up.",
    "1210273": "My best cv was (5 folds) 0.904, 0.901, 0.905, 0.903, 0.900 , trusting it costed me 1100 places shake down 😂, does anyone of you experienced the same phenomenon? I selected one highest LB and one highest CV, but didn't work for me...",
    "1210275": "I think it might be due to **validation scheme** I'm really curious about your result.",
    "1210362": "I trusted CV and didn’t select best LB sub. Missed price money. I don’t think we can trust anything in this competition. Luck is all we need lol.",
    "1210415": "But First place team stayed in their initial position so I'm guessing it's not all about luck",
    "1210856": "Hey mate, I used Stratified k-fold , with k=5, but my best models were mainly selected from the second fold, with seed 42, i.e. 0.904 and 0.905 were selected from that fold, which means I did epoch-wise blending also. The final outcome was simple averaging. Maybe i didn't pick proper loss function, i chose the Early Layer Regularization (ELR) loss. I used 5 light TTAs (horizontal filp, vertical flip, transpose, and random resized crop, while including the original image also in the tta). I didn't resize the images but i did center crops in the tta and in the validation augmentations, while in the train augmentations i used random resized crops. What am i missing here, maybe I did something wrong?\nCheers.",
    "1210864": "Your ensemble technique `my best models were mainly selected from the second fold` seems a bit strange. Don't we take an ensemble of all the folds? Taking multiple models from the same fold may create some bias.",
    "1210872": "Actually yea, I also took the remaining 3 models from fold1, fold3 and fold 4, while i didn't use fold 5 since it gave me quite lower cv. Maybe that's the case? There is quite similar idea by ensembling some models from the same fold: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/220752. I am also doubting this random resized crops in the TTA, but it gave me significant boost of the LB , by 0.005 ..."
  },
  "source": "meta"
}