{
  "id": 211475,
  "title": "Combining Different Loss Functions",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/211475",
  "author_name": "",
  "post_date": "2021-01-15T10:37:16.601407500Z",
  "votes": 31,
  "comment_count": 7,
  "views": 0,
  "content": "<p>I have seen that combining different loss functions gives an increase to my CV. <br>\nHere I have combined Taylor Cross Entropy with Label Smoothing loss, <a href=\"https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\" target=\"_blank\">NOTEBOOK</a>.<br>\nThis gives me a really good result for this fold.</p>\n<p>Is there any discussion or study about using more than one loss function for learning? some sources will be really helpful!</p>",
  "messages": [
    {
      "id": "1154017",
      "postDate": "01/15/2021 10:37:16",
      "content": "<p>I have seen that combining different loss functions gives an increase to my CV. <br>\nHere I have combined Taylor Cross Entropy with Label Smoothing loss, <a href=\"https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\" target=\"_blank\">NOTEBOOK</a>.<br>\nThis gives me a really good result for this fold.</p>\n<p>Is there any discussion or study about using more than one loss function for learning? some sources will be really helpful!</p>",
      "rawMarkdown": "I have seen that combining different loss functions gives an increase to my CV. \nHere I have combined Taylor Cross Entropy with Label Smoothing loss, [NOTEBOOK](https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo).\nThis gives me a really good result for this fold.\n\nIs there any discussion or study about using more than one loss function for learning? some sources will be really helpful!",
      "votes": null
    },
    {
      "id": "1154022",
      "postDate": "01/15/2021 10:42:43",
      "content": "<p>top work <a href=\"https://www.kaggle.com/yerramvarun\" target=\"_blank\">@yerramvarun</a> <br>\ni used combo loss : <a href=\"https://arxiv.org/abs/1805.02798\" target=\"_blank\">https://arxiv.org/abs/1805.02798</a> in past semantic segmentation competitions, it works well but your idea for this competition is truly magnificent, thank you for sharing with us</p>",
      "rawMarkdown": "top work @yerramvarun \ni used combo loss : https://arxiv.org/abs/1805.02798 in past semantic segmentation competitions, it works well but your idea for this competition is truly magnificent, thank you for sharing with us",
      "votes": null
    },
    {
      "id": "1154096",
      "postDate": "01/15/2021 11:54:46",
      "content": "<p>Thank you for the praise! Glad that it helps.<br>\nThe paper looks interesting will try it out 👍.</p>",
      "rawMarkdown": "Thank you for the praise! Glad that it helps.\nThe paper looks interesting will try it out 👍.",
      "votes": null
    },
    {
      "id": "1156952",
      "postDate": "01/17/2021 14:44:21",
      "content": "<p>Here's an Update using this Custom Loss function<br>\nThe PerFold results.<br>\nFOLD 0 - 0.89182<br>\nFOLD 1 - 0.91191<br>\nFOLD 2 - 0.90114<br>\nFOLD 3 - 0.89343<br>\nFOLD 4 - 0.89319<br>\nFor implementation - <a href=\"https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\" target=\"_blank\">Notebook</a><br>\n<a href=\"https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\" target=\"_blank\">https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo</a></p>\n<p>For using this loss with other architectures check out <a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> 's comprehensive <a href=\"https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\" target=\"_blank\">Notebook</a><br>\n<a href=\"https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\" target=\"_blank\">https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu</a></p>",
      "rawMarkdown": "Here's an Update using this Custom Loss function\nThe PerFold results.\nFOLD 0 - 0.89182\nFOLD 1 - 0.91191\nFOLD 2 - 0.90114\nFOLD 3 - 0.89343\nFOLD 4 - 0.89319\nFor implementation - [Notebook](https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo)\nhttps://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\n\nFor using this loss with other architectures check out @piantic 's comprehensive [Notebook](https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu)\nhttps://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu",
      "votes": null
    },
    {
      "id": "1158169",
      "postDate": "01/18/2021 12:23:56",
      "content": "<p>Hi,did you test this result?How many score it get on LB?Thanks!</p>",
      "rawMarkdown": "Hi,did you test this result?How many score it get on LB?Thanks!",
      "votes": null
    },
    {
      "id": "1158375",
      "postDate": "01/18/2021 14:35:33",
      "content": "<p>Yes I tested this result. I haven't tuned the smoothing parameter for now. With the present parameters and the model in my notebook, it scores an LB of 0.897 alone. but when added to my ensemble my lb increased much more than that. So its true potential is yet to be explored by me.</p>",
      "rawMarkdown": "Yes I tested this result. I haven't tuned the smoothing parameter for now. With the present parameters and the model in my notebook, it scores an LB of 0.897 alone. but when added to my ensemble my lb increased much more than that. So its true potential is yet to be explored by me.",
      "votes": null
    },
    {
      "id": "1162391",
      "postDate": "01/21/2021 05:57:50",
      "content": "<p>I see super progress <a href=\"https://www.kaggle.com/mobassir\" target=\"_blank\">@mobassir</a>  congrats 👏  <br>\nIs it attrubuted  to  completely this or other things you must have tried as well </p>",
      "rawMarkdown": "I see super progress @mobassir  congrats 👏  \nIs it attrubuted  to  completely this or other things you must have tried as well",
      "votes": null
    },
    {
      "id": "1162445",
      "postDate": "01/21/2021 06:38:38",
      "content": "<p><a href=\"https://www.kaggle.com/jaideepvalani\" target=\"_blank\">@jaideepvalani</a> thank you,i am working on other ideas(not spending a lot of time on this)</p>",
      "rawMarkdown": "jaideepvalani thank you,i am working on other ideas(not spending a lot of time on this)",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1154022,
      "author_name": "mobassir",
      "author_url": "",
      "post_date": "01/15/2021 10:42:43",
      "content": "<p>top work <a href=\"https://www.kaggle.com/yerramvarun\" target=\"_blank\">@yerramvarun</a> <br>\ni used combo loss : <a href=\"https://arxiv.org/abs/1805.02798\" target=\"_blank\">https://arxiv.org/abs/1805.02798</a> in past semantic segmentation competitions, it works well but your idea for this competition is truly magnificent, thank you for sharing with us</p>",
      "votes": null,
      "replies": [
        {
          "id": 1154096,
          "author_name": "yerramvarun",
          "author_url": "",
          "post_date": "01/15/2021 11:54:46",
          "content": "<p>Thank you for the praise! Glad that it helps.<br>\nThe paper looks interesting will try it out 👍.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1162391,
          "author_name": "jaideepvalani",
          "author_url": "",
          "post_date": "01/21/2021 05:57:50",
          "content": "<p>I see super progress <a href=\"https://www.kaggle.com/mobassir\" target=\"_blank\">@mobassir</a>  congrats 👏  <br>\nIs it attrubuted  to  completely this or other things you must have tried as well </p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1162445,
          "author_name": "mobassir",
          "author_url": "",
          "post_date": "01/21/2021 06:38:38",
          "content": "<p><a href=\"https://www.kaggle.com/jaideepvalani\" target=\"_blank\">@jaideepvalani</a> thank you,i am working on other ideas(not spending a lot of time on this)</p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1156952,
      "author_name": "yerramvarun",
      "author_url": "",
      "post_date": "01/17/2021 14:44:21",
      "content": "<p>Here's an Update using this Custom Loss function<br>\nThe PerFold results.<br>\nFOLD 0 - 0.89182<br>\nFOLD 1 - 0.91191<br>\nFOLD 2 - 0.90114<br>\nFOLD 3 - 0.89343<br>\nFOLD 4 - 0.89319<br>\nFor implementation - <a href=\"https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\" target=\"_blank\">Notebook</a><br>\n<a href=\"https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\" target=\"_blank\">https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo</a></p>\n<p>For using this loss with other architectures check out <a href=\"https://www.kaggle.com/piantic\" target=\"_blank\">@piantic</a> 's comprehensive <a href=\"https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\" target=\"_blank\">Notebook</a><br>\n<a href=\"https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu\" target=\"_blank\">https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu</a></p>",
      "votes": null,
      "replies": [
        {
          "id": 1158169,
          "author_name": "bcwang",
          "author_url": "",
          "post_date": "01/18/2021 12:23:56",
          "content": "<p>Hi,did you test this result?How many score it get on LB?Thanks!</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 1158375,
          "author_name": "yerramvarun",
          "author_url": "",
          "post_date": "01/18/2021 14:35:33",
          "content": "<p>Yes I tested this result. I haven't tuned the smoothing parameter for now. With the present parameters and the model in my notebook, it scores an LB of 0.897 alone. but when added to my ensemble my lb increased much more than that. So its true potential is yet to be explored by me.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1154017": "I have seen that combining different loss functions gives an increase to my CV. \nHere I have combined Taylor Cross Entropy with Label Smoothing loss, [NOTEBOOK](https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo).\nThis gives me a really good result for this fold.\n\nIs there any discussion or study about using more than one loss function for learning? some sources will be really helpful!",
    "1154022": "top work @yerramvarun \ni used combo loss : https://arxiv.org/abs/1805.02798 in past semantic segmentation competitions, it works well but your idea for this competition is truly magnificent, thank you for sharing with us",
    "1154096": "Thank you for the praise! Glad that it helps.\nThe paper looks interesting will try it out 👍.",
    "1156952": "Here's an Update using this Custom Loss function\nThe PerFold results.\nFOLD 0 - 0.89182\nFOLD 1 - 0.91191\nFOLD 2 - 0.90114\nFOLD 3 - 0.89343\nFOLD 4 - 0.89319\nFor implementation - [Notebook](https://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo)\nhttps://www.kaggle.com/yerramvarun/cassava-taylorce-loss-label-smoothing-combo\n\nFor using this loss with other architectures check out @piantic 's comprehensive [Notebook](https://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu)\nhttps://www.kaggle.com/piantic/how-to-finetuning-models-pytorch-xla-tpu",
    "1158169": "Hi,did you test this result?How many score it get on LB?Thanks!",
    "1158375": "Yes I tested this result. I haven't tuned the smoothing parameter for now. With the present parameters and the model in my notebook, it scores an LB of 0.897 alone. but when added to my ensemble my lb increased much more than that. So its true potential is yet to be explored by me.",
    "1162391": "I see super progress @mobassir  congrats 👏  \nIs it attrubuted  to  completely this or other things you must have tried as well",
    "1162445": "jaideepvalani thank you,i am working on other ideas(not spending a lot of time on this)"
  },
  "source": "meta"
}