{
  "id": 216247,
  "title": "Which are the best loss functions to use other than cross entropy loss ?",
  "url": "/competitions/cassava-leaf-disease-classification/discussion/216247",
  "author_name": "",
  "post_date": "2021-02-02T06:05:23.186234800Z",
  "votes": 2,
  "comment_count": 5,
  "views": 0,
  "content": "<p>Hello all,</p>\n<p>What kind of loss function (other than cross-entropy loss) should I try in this type of competition which are known for better results?<br>\nIt will be helpful to explore different loss function which can solve the class imbalance. <br>\nAny suggestions? </p>",
  "messages": [
    {
      "id": "1181802",
      "postDate": "02/02/2021 06:05:23",
      "content": "<p>Hello all,</p>\n<p>What kind of loss function (other than cross-entropy loss) should I try in this type of competition which are known for better results?<br>\nIt will be helpful to explore different loss function which can solve the class imbalance. <br>\nAny suggestions? </p>",
      "rawMarkdown": "Hello all,\n\nWhat kind of loss function (other than cross-entropy loss) should I try in this type of competition which are known for better results?\nIt will be helpful to explore different loss function which can solve the class imbalance. \nAny suggestions?",
      "votes": null
    },
    {
      "id": "1181972",
      "postDate": "02/02/2021 08:26:46",
      "content": "<p>Categorical cross entropy is the best option I think.</p>",
      "rawMarkdown": "Categorical cross entropy is the best option I think.",
      "votes": null
    },
    {
      "id": "1182108",
      "postDate": "02/02/2021 09:57:11",
      "content": "<p>Well, you can try some, just to give some directions:</p>\n<p>(I got these with typing \"imbalanced\" into the discussion forum in 5 seconds from top 10 sorted by \"Relevance\")<br>\nHandling imbalanced datasets: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/198842\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/198842</a><br>\nLoss Functions for Multiclass imbalanced data: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/200696\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/200696</a></p>\n<p>(another 5 seconds search result…)<br>\nWhich loss function is better?: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/210918\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/210918</a><br>\nTaylor Cross Entropy Loss: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209782\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209782</a><br>\nCombining Different Loss Functions: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/211475\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/211475</a><br>\n[Tips] How to use Label Smoothing in Pytorch: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203103\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203103</a><br>\nBi-Tempered Loss [Tensorflow 2.0]: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209773\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209773</a><br>\nif you are not getting lb 0.901 and above, here is why: <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>\n<p>(after this, if you want to eat, you can go fishing -&gt; just type short words into the search field and hit enter, it does magix…)</p>",
      "rawMarkdown": "Well, you can try some, just to give some directions:\n\n(I got these with typing \"imbalanced\" into the discussion forum in 5 seconds from top 10 sorted by \"Relevance\")\nHandling imbalanced datasets: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/198842\nLoss Functions for Multiclass imbalanced data: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/200696\n\n(another 5 seconds search result...)\nWhich loss function is better?: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/210918\nTaylor Cross Entropy Loss: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209782\nCombining Different Loss Functions: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/211475\n[Tips] How to use Label Smoothing in Pytorch: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203103\nBi-Tempered Loss [Tensorflow 2.0]: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209773\nif you are not getting lb 0.901 and above, here is why: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017\n\n(after this, if you want to eat, you can go fishing -> just type short words into the search field and hit enter, it does magix...)",
      "votes": null
    },
    {
      "id": "1182425",
      "postDate": "02/02/2021 12:58:04",
      "content": "<p>I saw many loss in this competitions. Categorical crossentropy, of course, is basic. And I saw bi-tempered log loss, taylorcrossentropy, and symmetric cross entropy for noisy labels. </p>",
      "rawMarkdown": "I saw many loss in this competitions. Categorical crossentropy, of course, is basic. And I saw bi-tempered log loss, taylorcrossentropy, and symmetric cross entropy for noisy labels.",
      "votes": null
    },
    {
      "id": "1189178",
      "postDate": "02/06/2021 19:14:37",
      "content": "<p>I used Taylor cross entropy, showing me good results 👍</p>",
      "rawMarkdown": "I used Taylor cross entropy, showing me good results 👍",
      "votes": null
    },
    {
      "id": "1189180",
      "postDate": "02/06/2021 19:15:34",
      "content": "<p>Well Thank You so much I have used taylor cross entropy loss with label smoothing and showing me good results </p>",
      "rawMarkdown": "Well Thank You so much I have used taylor cross entropy loss with label smoothing and showing me good results",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1181972,
      "author_name": "shanmukh05",
      "author_url": "",
      "post_date": "02/02/2021 08:26:46",
      "content": "<p>Categorical cross entropy is the best option I think.</p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1182108,
      "author_name": "killimi",
      "author_url": "",
      "post_date": "02/02/2021 09:57:11",
      "content": "<p>Well, you can try some, just to give some directions:</p>\n<p>(I got these with typing \"imbalanced\" into the discussion forum in 5 seconds from top 10 sorted by \"Relevance\")<br>\nHandling imbalanced datasets: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/198842\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/198842</a><br>\nLoss Functions for Multiclass imbalanced data: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/200696\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/200696</a></p>\n<p>(another 5 seconds search result…)<br>\nWhich loss function is better?: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/210918\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/210918</a><br>\nTaylor Cross Entropy Loss: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209782\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209782</a><br>\nCombining Different Loss Functions: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/211475\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/211475</a><br>\n[Tips] How to use Label Smoothing in Pytorch: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203103\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203103</a><br>\nBi-Tempered Loss [Tensorflow 2.0]: <a href=\"https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209773\" target=\"_blank\">https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209773</a><br>\nif you are not getting lb 0.901 and above, here is why: <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>\n<p>(after this, if you want to eat, you can go fishing -&gt; just type short words into the search field and hit enter, it does magix…)</p>",
      "votes": null,
      "replies": [
        {
          "id": 1189180,
          "author_name": "parthdhameliya77",
          "author_url": "",
          "post_date": "02/06/2021 19:15:34",
          "content": "<p>Well Thank You so much I have used taylor cross entropy loss with label smoothing and showing me good results </p>",
          "votes": null,
          "replies": []
        }
      ]
    },
    {
      "id": 1182425,
      "author_name": "vkehfdl1",
      "author_url": "",
      "post_date": "02/02/2021 12:58:04",
      "content": "<p>I saw many loss in this competitions. Categorical crossentropy, of course, is basic. And I saw bi-tempered log loss, taylorcrossentropy, and symmetric cross entropy for noisy labels. </p>",
      "votes": null,
      "replies": [
        {
          "id": 1189178,
          "author_name": "parthdhameliya77",
          "author_url": "",
          "post_date": "02/06/2021 19:14:37",
          "content": "<p>I used Taylor cross entropy, showing me good results 👍</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1181802": "Hello all,\n\nWhat kind of loss function (other than cross-entropy loss) should I try in this type of competition which are known for better results?\nIt will be helpful to explore different loss function which can solve the class imbalance. \nAny suggestions?",
    "1181972": "Categorical cross entropy is the best option I think.",
    "1182108": "Well, you can try some, just to give some directions:\n\n(I got these with typing \"imbalanced\" into the discussion forum in 5 seconds from top 10 sorted by \"Relevance\")\nHandling imbalanced datasets: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/198842\nLoss Functions for Multiclass imbalanced data: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/200696\n\n(another 5 seconds search result...)\nWhich loss function is better?: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/210918\nTaylor Cross Entropy Loss: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209782\nCombining Different Loss Functions: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/211475\n[Tips] How to use Label Smoothing in Pytorch: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/203103\nBi-Tempered Loss [Tensorflow 2.0]: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/209773\nif you are not getting lb 0.901 and above, here is why: https://www.kaggle.com/c/cassava-leaf-disease-classification/discussion/202017\n\n(after this, if you want to eat, you can go fishing -> just type short words into the search field and hit enter, it does magix...)",
    "1182425": "I saw many loss in this competitions. Categorical crossentropy, of course, is basic. And I saw bi-tempered log loss, taylorcrossentropy, and symmetric cross entropy for noisy labels.",
    "1189178": "I used Taylor cross entropy, showing me good results 👍",
    "1189180": "Well Thank You so much I have used taylor cross entropy loss with label smoothing and showing me good results"
  },
  "source": "meta"
}