{
  "id": 207524,
  "title": "Score not increasing ",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/207524",
  "author_name": "",
  "post_date": "2020-12-30T04:54:52.081049800Z",
  "votes": 3,
  "comment_count": 9,
  "views": 0,
  "content": "<p>After experimenting with my code and also looking at other's work, mainly through Kaggle discussions, here is what i found which may be a reason for low score :</p>\n<ol>\n<li><strong><em>Loss</em></strong>- normal loss vs tempered loss (for noisy data)<br>\n<a href=\"https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\" target=\"_blank\">https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html</a><br>\nOur cassava dataset has large margin noise. So using normal losses won't help with these large noises. Tempered Loss is designed to deal with noisy datasets.</li>\n</ol>\n<blockquote>\n  <p>If anyone has implemented <strong>tempered loss</strong> in your kernel please share ! 👀</p>\n</blockquote>\n<ol>\n<li><strong><em>Label</em></strong> - normal labels vs label smoothing</li>\n<li><strong><em>Data augmentation</em></strong> - ImageGenerator vs Augmentation vs Albumentation<br>\nI have used ImageGenerator so far to get only 0.87 lb. Should i use aug or alb ?</li>\n</ol>",
  "messages": [
    {
      "id": "1131933",
      "postDate": "12/30/2020 04:54:52",
      "content": "<p>After experimenting with my code and also looking at other's work, mainly through Kaggle discussions, here is what i found which may be a reason for low score :</p>\n<ol>\n<li><strong><em>Loss</em></strong>- normal loss vs tempered loss (for noisy data)<br>\n<a href=\"https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\" target=\"_blank\">https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html</a><br>\nOur cassava dataset has large margin noise. So using normal losses won't help with these large noises. Tempered Loss is designed to deal with noisy datasets.</li>\n</ol>\n<blockquote>\n  <p>If anyone has implemented <strong>tempered loss</strong> in your kernel please share ! 👀</p>\n</blockquote>\n<ol>\n<li><strong><em>Label</em></strong> - normal labels vs label smoothing</li>\n<li><strong><em>Data augmentation</em></strong> - ImageGenerator vs Augmentation vs Albumentation<br>\nI have used ImageGenerator so far to get only 0.87 lb. Should i use aug or alb ?</li>\n</ol>",
      "rawMarkdown": "After experimenting with my code and also looking at other's work, mainly through Kaggle discussions, here is what i found which may be a reason for low score :\n1. ***Loss***- normal loss vs tempered loss (for noisy data)\nhttps://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\nOur cassava dataset has large margin noise. So using normal losses won't help with these large noises. Tempered Loss is designed to deal with noisy datasets.\n> If anyone has implemented **tempered loss** in your kernel please share ! 👀\n\n2. ***Label*** - normal labels vs label smoothing\n3. ***Data augmentation*** - ImageGenerator vs Augmentation vs Albumentation\nI have used ImageGenerator so far to get only 0.87 lb. Should i use aug or alb ?",
      "votes": null
    },
    {
      "id": "1131957",
      "postDate": "12/30/2020 05:08:15",
      "content": "<p>Albumentation was fast and gave good results for this dataset.</p>\n<p>Variable brightness, contrast and hue didn't give significant improvement. It is good to go with light augmentations like randomcrop, resize and flips. </p>\n<p>I haven't tested cutout or advanced techniques like snapmix. If anyone tried it, is it helping. </p>",
      "rawMarkdown": "Albumentation was fast and gave good results for this dataset.\n\nVariable brightness, contrast and hue didn't give significant improvement. It is good to go with light augmentations like randomcrop, resize and flips. \n\nI haven't tested cutout or advanced techniques like snapmix. If anyone tried it, is it helping.",
      "votes": null
    },
    {
      "id": "1131965",
      "postDate": "12/30/2020 05:12:47",
      "content": "<p>Thanks for your reply!<br>\nHave you tried  <strong><em>tempered loss</em></strong> ?</p>",
      "rawMarkdown": "Thanks for your reply!\nHave you tried  ***tempered loss*** ?",
      "votes": null
    },
    {
      "id": "1131979",
      "postDate": "12/30/2020 05:18:58",
      "content": "<p>Some time ago I had published a kernel with bi-tempered loss <a href=\"https://www.kaggle.com/debarshichanda/cassava-bitempered-logistic-loss\" target=\"_blank\">here</a><br>\nPlease note that this implementation is entirely borrowed from <a href=\"https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py\" target=\"_blank\">https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py</a></p>",
      "rawMarkdown": "Some time ago I had published a kernel with bi-tempered loss [here](https://www.kaggle.com/debarshichanda/cassava-bitempered-logistic-loss)\nPlease note that this implementation is entirely borrowed from [https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py](https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py)",
      "votes": null
    },
    {
      "id": "1131983",
      "postDate": "12/30/2020 05:21:57",
      "content": "<p>Thanks! This will help!</p>",
      "rawMarkdown": "Thanks! This will help!",
      "votes": null
    },
    {
      "id": "1132036",
      "postDate": "12/30/2020 06:11:58",
      "content": "<p>Yes I had tried bi-tempered loss which <a href=\"https://www.kaggle.com/debarshichanda\" target=\"_blank\">@debarshichanda</a> recommended. But focalcosineloss worked better than this. </p>",
      "rawMarkdown": "Yes I had tried bi-tempered loss which @debarshichanda recommended. But focalcosineloss worked better than this.",
      "votes": null
    },
    {
      "id": "1132055",
      "postDate": "12/30/2020 06:23:21",
      "content": "<p>Where can i find <strong>focalcosineloss</strong> documentation?</p>",
      "rawMarkdown": "Where can i find **focalcosineloss** documentation?",
      "votes": null
    },
    {
      "id": "1132061",
      "postDate": "12/30/2020 06:30:38",
      "content": "<p>This discussion has implementation of FocalCosineLoss<br>\n<a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271</a></p>",
      "rawMarkdown": "This discussion has implementation of FocalCosineLoss\n[https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271](https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271)",
      "votes": null
    },
    {
      "id": "1132457",
      "postDate": "12/30/2020 12:23:01",
      "content": "<p><a href=\"https://www.kaggle.com/sandeepganesh049\" target=\"_blank\">@sandeepganesh049</a> How did you find out that the dataset has large margin noise?</p>",
      "rawMarkdown": "sandeepganesh049 How did you find out that the dataset has large margin noise?",
      "votes": null
    },
    {
      "id": "1132544",
      "postDate": "12/30/2020 13:38:03",
      "content": "<p><a href=\"https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\" target=\"_blank\">https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html</a><br>\nWell looking from this, it must be either large margin noise or random noise</p>\n<p>Also check out this : <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017</a></p>",
      "rawMarkdown": "https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\nWell looking from this, it must be either large margin noise or random noise\n\nAlso check out this : https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1131957,
      "author_name": "tamilselvanmoorthy",
      "author_url": "",
      "post_date": "12/30/2020 05:08:15",
      "content": "<p>Albumentation was fast and gave good results for this dataset.</p>\n<p>Variable brightness, contrast and hue didn't give significant improvement. It is good to go with light augmentations like randomcrop, resize and flips. </p>\n<p>I haven't tested cutout or advanced techniques like snapmix. If anyone tried it, is it helping. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1131965,
          "author_name": "sandeepganesh049",
          "author_url": "",
          "post_date": "12/30/2020 05:12:47",
          "content": "<p>Thanks for your reply!<br>\nHave you tried  <strong><em>tempered loss</em></strong> ?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1132036,
          "author_name": "tamilselvanmoorthy",
          "author_url": "",
          "post_date": "12/30/2020 06:11:58",
          "content": "<p>Yes I had tried bi-tempered loss which <a href=\"https://www.kaggle.com/debarshichanda\" target=\"_blank\">@debarshichanda</a> recommended. But focalcosineloss worked better than this. </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1132055,
          "author_name": "sandeepganesh049",
          "author_url": "",
          "post_date": "12/30/2020 06:23:21",
          "content": "<p>Where can i find <strong>focalcosineloss</strong> documentation?</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1132061,
          "author_name": "debarshichanda",
          "author_url": "",
          "post_date": "12/30/2020 06:30:38",
          "content": "<p>This discussion has implementation of FocalCosineLoss<br>\n<a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271</a></p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1131979,
      "author_name": "debarshichanda",
      "author_url": "",
      "post_date": "12/30/2020 05:18:58",
      "content": "<p>Some time ago I had published a kernel with bi-tempered loss <a href=\"https://www.kaggle.com/debarshichanda/cassava-bitempered-logistic-loss\" target=\"_blank\">here</a><br>\nPlease note that this implementation is entirely borrowed from <a href=\"https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py\" target=\"_blank\">https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1131983,
          "author_name": "sandeepganesh049",
          "author_url": "",
          "post_date": "12/30/2020 05:21:57",
          "content": "<p>Thanks! This will help!</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1132457,
      "author_name": "debarshichanda",
      "author_url": "",
      "post_date": "12/30/2020 12:23:01",
      "content": "<p><a href=\"https://www.kaggle.com/sandeepganesh049\" target=\"_blank\">@sandeepganesh049</a> How did you find out that the dataset has large margin noise?</p>",
      "votes": null,
      "replies": [
        {
          "id": 1132544,
          "author_name": "sandeepganesh049",
          "author_url": "",
          "post_date": "12/30/2020 13:38:03",
          "content": "<p><a href=\"https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\" target=\"_blank\">https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html</a><br>\nWell looking from this, it must be either large margin noise or random noise</p>\n<p>Also check out this : <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017</a></p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1131933": "After experimenting with my code and also looking at other's work, mainly through Kaggle discussions, here is what i found which may be a reason for low score :\n1. ***Loss***- normal loss vs tempered loss (for noisy data)\nhttps://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\nOur cassava dataset has large margin noise. So using normal losses won't help with these large noises. Tempered Loss is designed to deal with noisy datasets.\n> If anyone has implemented **tempered loss** in your kernel please share ! 👀\n\n2. ***Label*** - normal labels vs label smoothing\n3. ***Data augmentation*** - ImageGenerator vs Augmentation vs Albumentation\nI have used ImageGenerator so far to get only 0.87 lb. Should i use aug or alb ?",
    "1131957": "Albumentation was fast and gave good results for this dataset.\n\nVariable brightness, contrast and hue didn't give significant improvement. It is good to go with light augmentations like randomcrop, resize and flips. \n\nI haven't tested cutout or advanced techniques like snapmix. If anyone tried it, is it helping.",
    "1131965": "Thanks for your reply!\nHave you tried  ***tempered loss*** ?",
    "1131979": "Some time ago I had published a kernel with bi-tempered loss [here](https://www.kaggle.com/debarshichanda/cassava-bitempered-logistic-loss)\nPlease note that this implementation is entirely borrowed from [https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py](https://github.com/fhopfmueller/bi-tempered-loss-pytorch/blob/master/bi_tempered_loss_pytorch.py)",
    "1131983": "Thanks! This will help!",
    "1132036": "Yes I had tried bi-tempered loss which @debarshichanda recommended. But focalcosineloss worked better than this.",
    "1132055": "Where can i find **focalcosineloss** documentation?",
    "1132061": "This discussion has implementation of FocalCosineLoss\n[https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271](https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203271)",
    "1132457": "sandeepganesh049 How did you find out that the dataset has large margin noise?",
    "1132544": "https://ai.googleblog.com/2019/08/bi-tempered-logistic-loss-for-training.html\nWell looking from this, it must be either large margin noise or random noise\n\nAlso check out this : https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017"
  },
  "source": "meta"
}