{
  "id": 117112,
  "title": "will we all be dead tmr?",
  "url": "/competitions/rsna-intracranial-hemorrhage-detection/discussion/117112",
  "author_name": "hengck23",
  "post_date": "2019-11-13T13:10:44.363000",
  "votes": 7,
  "comment_count": 8,
  "views": 0,
  "content": "<p>the kaggle metric is log loss and not accuracy.</p>\n\n<p>this means that the submitted probability must be calibrated.  If stage2 test data and train2 (or train1) set has different probability, maybe we will all be dead at the final ranking</p>",
  "messages": [
    {
      "id": 672030,
      "postDate": "2019-11-13T13:10:44.363Z",
      "content": "<p>the kaggle metric is log loss and not accuracy.</p>\n\n<p>this means that the submitted probability must be calibrated.  If stage2 test data and train2 (or train1) set has different probability, maybe we will all be dead at the final ranking</p>",
      "rawMarkdown": "the kaggle metric is log loss and not accuracy.\n\nthis means that the submitted probability must be calibrated.  If stage2 test data and train2 (or train1) set has different probability, maybe we will all be dead at the final ranking",
      "votes": 7
    },
    {
      "id": 672415,
      "postDate": "2019-11-13T21:14:38.307Z",
      "content": "<p>Haha cool meme picture <a href=\"/hengck23\">@hengck23</a>.</p>\n\n<p>Can someone explain what is the practical difference between targetting log loss scores vs accuracy?</p>\n\n<p>From my basic understanding, log-loss has a higher penalty on the scores for wrong predictions.</p>",
      "rawMarkdown": "Haha cool meme picture @hengck23.\n\nCan someone explain what is the practical difference between targetting log loss scores vs accuracy?\n\nFrom my basic understanding, log-loss has a higher penalty on the scores for wrong predictions.",
      "votes": 1,
      "replies": [
        {
          "id": 672470,
          "postDate": "2019-11-13T23:40:30.413Z",
          "content": "<p>assuming that we have the ground truth\n(x1,y1), (x2,y2), (x3,y3)</p>\n\n<p>assuming that the image are very close and indistinguishable (i.e. we are going to have some error).  we write x1=x2=x3=x. let assume y1=1,y2=0 and y3=0.</p>\n\n<p>so now our model estimate  p(y|x).\nfor binary classification, we would threshold at 0.5</p>\n\n<p>case one:\np(y|x) =0.33. \nlog loss = ..., accuracy =  2/3</p>\n\n<p>case two:\np(y|x) = 0.44.\nlog loss = ..., accuracy =  2/3</p>\n\n<p>case three:\np(y|x) = 0.0001.\nlog loss = ..., accuracy =  2/3</p>\n\n<p>you can see that accuracy can be constant, but only case one will have optimal log loss.</p>",
          "rawMarkdown": "assuming that we have the ground truth\n(x1,y1), (x2,y2), (x3,y3)\n\nassuming that the image are very close and indistinguishable (i.e. we are going to have some error).  we write x1=x2=x3=x. let assume y1=1,y2=0 and y3=0.\n\nso now our model estimate  p(y|x).\nfor binary classification, we would threshold at 0.5\n\ncase one:\np(y|x) =0.33. \nlog loss = ..., accuracy =  2/3\n\ncase two:\np(y|x) = 0.44.\nlog loss = ..., accuracy =  2/3\n\ncase three:\np(y|x) = 0.0001.\nlog loss = ..., accuracy =  2/3\n\n\n\nyou can see that accuracy can be constant, but only case one will have optimal log loss.\n",
          "votes": 3
        },
        {
          "id": 672996,
          "postDate": "2019-11-14T11:22:34.117Z",
          "content": "<p>Thanks for breaking it down! I will need to examine this better. </p>",
          "rawMarkdown": "Thanks for breaking it down! I will need to examine this better. "
        }
      ]
    },
    {
      "id": 672141,
      "postDate": "2019-11-13T14:53:46.257Z",
      "content": "<p>Well, so far it can't be worse than ~500/1300 ¯\\__(ツ)__/¯</p>",
      "rawMarkdown": "Well, so far it can't be worse than ~500/1300 ¯\\\\_\\_(ツ)__/¯",
      "votes": 1,
      "replies": [
        {
          "id": 672195,
          "postDate": "2019-11-13T15:51:45.093Z",
          "content": "<p>That‘s true. 😄 </p>",
          "rawMarkdown": "That‘s true. 😄 "
        }
      ]
    },
    {
      "id": 672068,
      "postDate": "2019-11-13T13:40:27.313Z",
      "content": "<p>So how do we calibrate the probability of submission? I have tried to make the predicted probability less than a certain value equal to 0. If it is greater than a certain probability value, it will be equal to 1, but such loss value will rise a lot.  If you are not convenient to disclose, can you teach us after the game is over? Thanks a lot！</p>",
      "rawMarkdown": "So how do we calibrate the probability of submission? I have tried to make the predicted probability less than a certain value equal to 0. If it is greater than a certain probability value, it will be equal to 1, but such loss value will rise a lot.  If you are not convenient to disclose, can you teach us after the game is over? Thanks a lot！",
      "votes": 1
    },
    {
      "id": 672132,
      "postDate": "2019-11-13T14:44:48.980Z",
      "content": "<p><img src=\"https://lh3.googleusercontent.com/QyaseGU8MQd8h6cvQok1Vi7SE9k62UV2Hz1oqhB0Ct178H1T4kIusuhObZw3CSifDPaR1N035GtLVA\" alt=\"\"></p>",
      "rawMarkdown": "![](https://lh3.googleusercontent.com/QyaseGU8MQd8h6cvQok1Vi7SE9k62UV2Hz1oqhB0Ct178H1T4kIusuhObZw3CSifDPaR1N035GtLVA)",
      "votes": 2
    },
    {
      "id": 672070,
      "postDate": "2019-11-13T13:43:09.800Z",
      "content": "<p>Heng, \ndid you try to see if the proportion of positive cases are similar between stage 1 test and stage 2 test submissions? I’ve got reassuringly similar percentages.</p>",
      "rawMarkdown": "Heng, \ndid you try to see if the proportion of positive cases are similar between stage 1 test and stage 2 test submissions? I’ve got reassuringly similar percentages."
    }
  ],
  "comments": [
    {
      "id": 672415,
      "author_name": "David Tang",
      "author_url": "",
      "post_date": "2019-11-13T21:14:38.307000",
      "content": "<p>Haha cool meme picture <a href=\"/hengck23\">@hengck23</a>.</p>\n\n<p>Can someone explain what is the practical difference between targetting log loss scores vs accuracy?</p>\n\n<p>From my basic understanding, log-loss has a higher penalty on the scores for wrong predictions.</p>",
      "votes": 1,
      "replies": [
        {
          "id": 672470,
          "author_name": "hengck23",
          "author_url": "",
          "post_date": "2019-11-13T23:40:30.413000",
          "content": "<p>assuming that we have the ground truth\n(x1,y1), (x2,y2), (x3,y3)</p>\n\n<p>assuming that the image are very close and indistinguishable (i.e. we are going to have some error).  we write x1=x2=x3=x. let assume y1=1,y2=0 and y3=0.</p>\n\n<p>so now our model estimate  p(y|x).\nfor binary classification, we would threshold at 0.5</p>\n\n<p>case one:\np(y|x) =0.33. \nlog loss = ..., accuracy =  2/3</p>\n\n<p>case two:\np(y|x) = 0.44.\nlog loss = ..., accuracy =  2/3</p>\n\n<p>case three:\np(y|x) = 0.0001.\nlog loss = ..., accuracy =  2/3</p>\n\n<p>you can see that accuracy can be constant, but only case one will have optimal log loss.</p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 672996,
          "author_name": "David Tang",
          "author_url": "",
          "post_date": "2019-11-14T11:22:34.117000",
          "content": "<p>Thanks for breaking it down! I will need to examine this better. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 672141,
      "author_name": "César Parra Rojas",
      "author_url": "",
      "post_date": "2019-11-13T14:53:46.257000",
      "content": "<p>Well, so far it can't be worse than ~500/1300 ¯\\__(ツ)__/¯</p>",
      "votes": 1,
      "replies": [
        {
          "id": 672195,
          "author_name": "Yiyuan",
          "author_url": "",
          "post_date": "2019-11-13T15:51:45.093000",
          "content": "<p>That‘s true. 😄 </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 672068,
      "author_name": "Yiyuan",
      "author_url": "",
      "post_date": "2019-11-13T13:40:27.313000",
      "content": "<p>So how do we calibrate the probability of submission? I have tried to make the predicted probability less than a certain value equal to 0. If it is greater than a certain probability value, it will be equal to 1, but such loss value will rise a lot.  If you are not convenient to disclose, can you teach us after the game is over? Thanks a lot！</p>",
      "votes": 1,
      "replies": []
    },
    {
      "id": 672132,
      "author_name": "hengck23",
      "author_url": "",
      "post_date": "2019-11-13T14:44:48.980000",
      "content": "<p><img src=\"https://lh3.googleusercontent.com/QyaseGU8MQd8h6cvQok1Vi7SE9k62UV2Hz1oqhB0Ct178H1T4kIusuhObZw3CSifDPaR1N035GtLVA\" alt=\"\"></p>",
      "votes": 2,
      "replies": []
    },
    {
      "id": 672070,
      "author_name": "Yee Ng",
      "author_url": "",
      "post_date": "2019-11-13T13:43:09.800000",
      "content": "<p>Heng, \ndid you try to see if the proportion of positive cases are similar between stage 1 test and stage 2 test submissions? I’ve got reassuringly similar percentages.</p>",
      "votes": 0,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "672030": "the kaggle metric is log loss and not accuracy.\n\nthis means that the submitted probability must be calibrated.  If stage2 test data and train2 (or train1) set has different probability, maybe we will all be dead at the final ranking",
    "672415": "Haha cool meme picture @hengck23.\n\nCan someone explain what is the practical difference between targetting log loss scores vs accuracy?\n\nFrom my basic understanding, log-loss has a higher penalty on the scores for wrong predictions.",
    "672141": "Well, so far it can't be worse than ~500/1300 ¯\\\\_\\_(ツ)__/¯",
    "672068": "So how do we calibrate the probability of submission? I have tried to make the predicted probability less than a certain value equal to 0. If it is greater than a certain probability value, it will be equal to 1, but such loss value will rise a lot.  If you are not convenient to disclose, can you teach us after the game is over? Thanks a lot！",
    "672132": "![](https://lh3.googleusercontent.com/QyaseGU8MQd8h6cvQok1Vi7SE9k62UV2Hz1oqhB0Ct178H1T4kIusuhObZw3CSifDPaR1N035GtLVA)",
    "672070": "Heng, \ndid you try to see if the proportion of positive cases are similar between stage 1 test and stage 2 test submissions? I’ve got reassuringly similar percentages."
  }
}