{
  "id": 219885,
  "title": "What does confidence exactly do?",
  "url": "/competitions/hpa-single-cell-image-classification/discussion/219885",
  "author_name": "SmileEveryDay",
  "post_date": "2021-02-16T17:24:01.468000",
  "votes": 6,
  "comment_count": 23,
  "views": 0,
  "content": "<p>I searched for it all over the competition but can't find the exact difference the confidences makes in the result.</p>",
  "messages": [
    {
      "id": 1205460,
      "postDate": "2021-02-16T17:24:01.470Z",
      "content": "<p>I searched for it all over the competition but can't find the exact difference the confidences makes in the result.</p>",
      "rawMarkdown": "I searched for it all over the competition but can't find the exact difference the confidences makes in the result.",
      "votes": 5
    },
    {
      "id": 1210956,
      "postDate": "2021-02-19T20:37:36.637Z",
      "content": "<p>This <a href=\"https://www.youtube.com/watch?v=FppOzcDvaDI\" target=\"_blank\">video</a> explains how confidence scores are used.<br>\nCheck out the first 8 minutes for an explanation of mAP.<br>\nThe rest of the video contains implementation code.</p>",
      "rawMarkdown": "This [video](https://www.youtube.com/watch?v=FppOzcDvaDI) explains how confidence scores are used.\nCheck out the first 8 minutes for an explanation of mAP.\nThe rest of the video contains implementation code.",
      "votes": 4,
      "replies": [
        {
          "id": 1211207,
          "postDate": "2021-02-20T04:10:32.673Z",
          "content": "<p>This one was helpful. For people(like me) who don't know what mAP is I'd recommend checking this out 😀</p>",
          "rawMarkdown": "This one was helpful. For people(like me) who don't know what mAP is I'd recommend checking this out 😀",
          "votes": 1
        }
      ]
    },
    {
      "id": 1208850,
      "postDate": "2021-02-18T14:14:19.447Z",
      "content": "<p><a href=\"https://www.kaggle.com/lukereijnen\" target=\"_blank\">@lukereijnen</a> I read somewhere that confidence doesn't affect the score, you can even hardcode it to an arbitrary value. I will update you when I find the source. Edit: <a href=\"https://www.kaggle.com/thedrcat/hpa-single-cell-classification-eda\" target=\"_blank\">https://www.kaggle.com/thedrcat/hpa-single-cell-classification-eda</a></p>\n<p>It says \"we can always set the confidence to 1 without impacting the score\".</p>",
      "rawMarkdown": "@lukereijnen I read somewhere that confidence doesn't affect the score, you can even hardcode it to an arbitrary value. I will update you when I find the source. Edit: https://www.kaggle.com/thedrcat/hpa-single-cell-classification-eda\n\nIt says \"we can always set the confidence to 1 without impacting the score\".",
      "votes": 1,
      "replies": [
        {
          "id": 1208939,
          "postDate": "2021-02-18T15:14:54.133Z",
          "content": "<p>There may be some misunderstanding here.<br>\nI don't think mAP can work without confidence score.</p>",
          "rawMarkdown": "There may be some misunderstanding here.\nI don't think mAP can work without confidence score.",
          "votes": 2
        },
        {
          "id": 1208985,
          "postDate": "2021-02-18T15:52:14.317Z",
          "content": "<p>Okay, then maybe this is an older version. I'll check with the author of that kernel. 😅</p>",
          "rawMarkdown": "Okay, then maybe this is an older version. I'll check with the author of that kernel. 😅",
          "votes": 1
        },
        {
          "id": 1208996,
          "postDate": "2021-02-18T15:59:26.810Z",
          "content": "<p>Or maybe I'm wrong.😅<br>\nI'll set the confidence to 1 and submit it later, and let you know the result here.</p>",
          "rawMarkdown": "Or maybe I'm wrong.😅\nI'll set the confidence to 1 and submit it later, and let you know the result here.",
          "votes": 3
        },
        {
          "id": 1209003,
          "postDate": "2021-02-18T16:07:43.700Z",
          "content": "<p>Thanks, that should clear things up :)</p>",
          "rawMarkdown": "Thanks, that should clear things up :)"
        },
        {
          "id": 1209158,
          "postDate": "2021-02-18T18:10:39.860Z",
          "content": "<p>Like all things statistical - I think the correct answer is it depends.<br>\nI think this is how it depends for this competition.</p>\n<p>You cannot use a confidence of 1 to select the predicted class(es) for an cell.  Hopefully it's obvious that this value will result in no classes being selected for a cell.</p>\n<p>But</p>\n<p>Once you have made a selection and are reporting the class in your submission file than <strong>PERHAPS</strong> you can put a value of 1 in the file without hurting the score.</p>\n<ul>\n<li>not sure why you would do that - you should have code access to the computed probability when you made the decision to select the class(es) - so why not just report that value rather than fake it with a 1?  (Not likely that a metric change will occur for the third time but always a slim chance of a change where the \"1\" does not really hurt)</li>\n</ul>\n<p>This metric is really confusing for me - someone post a nice explanation that seemed to clear up my mind  - but once I found source code that might be in use I got all confused again :)</p>",
          "rawMarkdown": "Like all things statistical - I think the correct answer is it depends.\nI think this is how it depends for this competition.\n\nYou cannot use a confidence of 1 to select the predicted class(es) for an cell.  Hopefully it's obvious that this value will result in no classes being selected for a cell.\n\nBut\n\nOnce you have made a selection and are reporting the class in your submission file than **PERHAPS** you can put a value of 1 in the file without hurting the score.\n\n- not sure why you would do that - you should have code access to the computed probability when you made the decision to select the class(es) - so why not just report that value rather than fake it with a 1?  (Not likely that a metric change will occur for the third time but always a slim chance of a change where the \"1\" does not really hurt)\n\nThis metric is really confusing for me - someone post a nice explanation that seemed to clear up my mind  - but once I found source code that might be in use I got all confused again :)"
        },
        {
          "id": 1209222,
          "postDate": "2021-02-18T18:59:08.633Z",
          "content": "<blockquote>\n  <p>I'll set the confidence to 1 and submit it later, and let you know the result here.</p>\n</blockquote>\n<p>I obtained very low LB score of 0.116.<br>\nSo confidence score should be used in LB.</p>\n<p>This is a complex subject and the discussion is often confusing, so It might be a good idea to read reliable source code for mAP. <br>\nAgain, I hope <a href=\"https://www.kaggle.com/its7171/map-understanding-with-code-and-its-tips\" target=\"_blank\">this notebook</a> helps.</p>",
          "rawMarkdown": "> I'll set the confidence to 1 and submit it later, and let you know the result here.\n\nI obtained very low LB score of 0.116.\nSo confidence score should be used in LB.\n\nThis is a complex subject and the discussion is often confusing, so It might be a good idea to read reliable source code for mAP. \nAgain, I hope [this notebook](https://www.kaggle.com/its7171/map-understanding-with-code-and-its-tips) helps.",
          "votes": 7
        },
        {
          "id": 1209755,
          "postDate": "2021-02-19T03:08:31.230Z",
          "content": "<blockquote>\n  <p>I obtained very low LB score of 0.116.<br>\n  So confidence score should be used in LB.</p>\n</blockquote>\n<p>I see, thanks <a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> </p>",
          "rawMarkdown": "> I obtained very low LB score of 0.116.\n> So confidence score should be used in LB.\n\nI see, thanks @its7171 ",
          "votes": 1
        },
        {
          "id": 1209785,
          "postDate": "2021-02-19T03:33:29.403Z",
          "rawMarkdown": "",
          "votes": 2,
          "isDeleted": true
        },
        {
          "id": 1209829,
          "postDate": "2021-02-19T04:04:50.423Z",
          "content": "<p>yes - important to include probability 👍😃</p>",
          "rawMarkdown": "yes - important to include probability 👍😃",
          "votes": 1
        },
        {
          "id": 1209923,
          "postDate": "2021-02-19T05:35:19.457Z",
          "content": "<p><a href=\"https://www.kaggle.com/arka47\" target=\"_blank\">@arka47</a> <a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> thanks for confirming that confidence is relevant! I was confused by a <a href=\"https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/215141\" target=\"_blank\">comment by the host</a>: </p>\n<blockquote>\n  <p>Confidence is just ranking of scoring (which mask/label got scored first), so you can set them all to 1 like this and it won't affect your score.</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/lnhtrang\" target=\"_blank\">@lnhtrang</a> - can you reconfirm the relevance of the confidence score? Based on the discussion above your comment appears to be incorrect. </p>",
          "rawMarkdown": "@arka47 @its7171 thanks for confirming that confidence is relevant! I was confused by a [comment by the host](https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/215141): \n> Confidence is just ranking of scoring (which mask/label got scored first), so you can set them all to 1 like this and it won't affect your score.\n\n@lnhtrang - can you reconfirm the relevance of the confidence score? Based on the discussion above your comment appears to be incorrect. ",
          "votes": 2
        },
        {
          "id": 1209951,
          "postDate": "2021-02-19T05:56:51.743Z",
          "content": "<p><a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> <br>\nThank you very much for your (all confidence==1) submission and the amazing notebook.<br>\nNow I understand the situation as following:<br>\n(All confidence==1) means random ranking.<br>\nFor one class, if there are many \"False\" accidentally around the beginning of the ranking (#1, #2, #3…), the left part of the PR curve closes to 0, where AP score cannot be calculated properly (underestimation).</p>",
          "rawMarkdown": "@its7171 \nThank you very much for your (all confidence==1) submission and the amazing notebook.\nNow I understand the situation as following:\n(All confidence==1) means random ranking.\nFor one class, if there are many \"False\" accidentally around the beginning of the ranking (#1, #2, #3...), the left part of the PR curve closes to 0, where AP score cannot be calculated properly (underestimation).",
          "votes": 1
        },
        {
          "id": 1210218,
          "postDate": "2021-02-19T09:14:09.947Z",
          "content": "<p>With the initial scoring system, the confidence didn't affect the score. After the switch to mAP, the confidence score is indeed being used as part of the scoring.</p>",
          "rawMarkdown": "With the initial scoring system, the confidence didn't affect the score. After the switch to mAP, the confidence score is indeed being used as part of the scoring.",
          "votes": 4
        },
        {
          "id": 1210255,
          "postDate": "2021-02-19T09:46:28.910Z",
          "content": "<p>Thanks for confirming!</p>",
          "rawMarkdown": "Thanks for confirming!",
          "votes": 1
        },
        {
          "id": 1210261,
          "postDate": "2021-02-19T09:53:38.700Z",
          "content": "<p><a href=\"https://www.kaggle.com/cwinsnes\" target=\"_blank\">@cwinsnes</a>,<br>\nThanks for the clarification.<br>\nIt's all clear now.</p>\n<p><a href=\"https://www.kaggle.com/drtausamaru\" target=\"_blank\">@drtausamaru</a>,</p>\n<pre>For one class, if there are many \"False\" accidentally around the beginning of the ranking (#1, #2, #3…), the left part of the PR curve closes to 0\n</pre>\n<p>Yes, box with a high confidence value have high precision, so Precision/Recall curve is usually a decreasing curve.<br>\nBut if false_positives and ture_positives lists are not sorted,Precision/Recall curve will be a flat curve.<br>\nThis situation can be checked by commenting out the following 3 lines in my notebook.</p>\n<pre>indices = np.argsort(-scores)\nfalse_positives = false_positives[indices]\ntrue_positives = true_positives[indices]\n</pre>",
          "rawMarkdown": "@cwinsnes,\nThanks for the clarification.\nIt's all clear now.\n\n@drtausamaru,\n<pre>\nFor one class, if there are many \"False\" accidentally around the beginning of the ranking (#1, #2, #3…), the left part of the PR curve closes to 0\n</pre>\nYes, box with a high confidence value have high precision, so Precision/Recall curve is usually a decreasing curve.\nBut if false_positives and ture_positives lists are not sorted,Precision/Recall curve will be a flat curve.\nThis situation can be checked by commenting out the following 3 lines in my notebook.\n<pre>\nindices = np.argsort(-scores)\nfalse_positives = false_positives[indices]\ntrue_positives = true_positives[indices]\n</pre>\n",
          "votes": 2
        }
      ]
    },
    {
      "id": 1226587,
      "postDate": "2021-03-04T17:10:21.200Z",
      "content": "<p>So does it makes sense then not to use a threshold for the cell-wise confidences and just put every label and it's according confidence there?</p>",
      "rawMarkdown": "So does it makes sense then not to use a threshold for the cell-wise confidences and just put every label and it's according confidence there?",
      "replies": [
        {
          "id": 1226949,
          "postDate": "2021-03-05T03:46:47.117Z",
          "content": "<p>Yes - for me this led to the best score. The only caveat is that you need to get the model to work well on negative cells. </p>",
          "rawMarkdown": "Yes - for me this led to the best score. The only caveat is that you need to get the model to work well on negative cells. "
        }
      ]
    },
    {
      "id": 1205607,
      "postDate": "2021-02-16T20:16:40.437Z",
      "rawMarkdown": "",
      "votes": 1,
      "isDeleted": true,
      "replies": [
        {
          "id": 1207198,
          "postDate": "2021-02-17T18:35:43Z",
          "content": "<p>Nice paper - thanks for the share.  Guess the thing we are missing to do local measurement of mAP is some ground truth segment images.   There are images on the Human Atlas site with segments - have not found how to download any of those to create a set of ground truth's.  Also of course not certain that they are \"annotated\" segments.</p>",
          "rawMarkdown": "Nice paper - thanks for the share.  Guess the thing we are missing to do local measurement of mAP is some ground truth segment images.   There are images on the Human Atlas site with segments - have not found how to download any of those to create a set of ground truth's.  Also of course not certain that they are \"annotated\" segments.",
          "votes": 1
        },
        {
          "id": 1208583,
          "postDate": "2021-02-18T10:48:36.617Z",
          "content": "<p>Great read, but I still don't understand how the confidence influences our final score.</p>",
          "rawMarkdown": "Great read, but I still don't understand how the confidence influences our final score."
        },
        {
          "id": 1208838,
          "postDate": "2021-02-18T14:06:12.747Z",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/lukereijnen\" target=\"_blank\">@lukereijnen</a>,</p>\n<p>Confidence scores is used to sort for the following two purposes.</p>\n<ol>\n<li>detected bounding boxes should be sorted by confidence scores before cehck if TP or FP.</li>\n<li>FP and TP list should be sorted by confidence scores before Average Precision Calculation.</li>\n</ol>\n<p>It is a bit difficult to explain, so I have added this explanation to this note.<br>\n<a href=\"https://www.kaggle.com/its7171/map-understanding-with-code-and-its-tips\" target=\"_blank\">mAP understanding with code and its tips</a><br>\nThis is an mAP description of object detection, not instance segmentation, but it is essentially the same.</p>\n<p>I hope this helps.</p>",
          "rawMarkdown": "Hi @lukereijnen,\n\nConfidence scores is used to sort for the following two purposes.\n\n1. detected bounding boxes should be sorted by confidence scores before cehck if TP or FP.\n2. FP and TP list should be sorted by confidence scores before Average Precision Calculation.\n\nIt is a bit difficult to explain, so I have added this explanation to this note.\n[mAP understanding with code and its tips](https://www.kaggle.com/its7171/map-understanding-with-code-and-its-tips)\nThis is an mAP description of object detection, not instance segmentation, but it is essentially the same.\n\nI hope this helps.",
          "votes": 5
        }
      ]
    }
  ],
  "comments": [
    {
      "id": 1210956,
      "author_name": "CroDoc",
      "author_url": "",
      "post_date": "2021-02-19T20:37:36.637000",
      "content": "<p>This <a href=\"https://www.youtube.com/watch?v=FppOzcDvaDI\" target=\"_blank\">video</a> explains how confidence scores are used.<br>\nCheck out the first 8 minutes for an explanation of mAP.<br>\nThe rest of the video contains implementation code.</p>",
      "votes": 4,
      "replies": [
        {
          "id": 1211207,
          "author_name": "Arka Saha",
          "author_url": "",
          "post_date": "2021-02-20T04:10:32.673000",
          "content": "<p>This one was helpful. For people(like me) who don't know what mAP is I'd recommend checking this out 😀</p>",
          "votes": 1,
          "replies": []
        }
      ]
    },
    {
      "id": 1208850,
      "author_name": "Arka Saha",
      "author_url": "",
      "post_date": "2021-02-18T14:14:19.447000",
      "content": "<p><a href=\"https://www.kaggle.com/lukereijnen\" target=\"_blank\">@lukereijnen</a> I read somewhere that confidence doesn't affect the score, you can even hardcode it to an arbitrary value. I will update you when I find the source. Edit: <a href=\"https://www.kaggle.com/thedrcat/hpa-single-cell-classification-eda\" target=\"_blank\">https://www.kaggle.com/thedrcat/hpa-single-cell-classification-eda</a></p>\n<p>It says \"we can always set the confidence to 1 without impacting the score\".</p>",
      "votes": 1,
      "replies": [
        {
          "id": 1208939,
          "author_name": "tito",
          "author_url": "",
          "post_date": "2021-02-18T15:14:54.133000",
          "content": "<p>There may be some misunderstanding here.<br>\nI don't think mAP can work without confidence score.</p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1208985,
          "author_name": "Arka Saha",
          "author_url": "",
          "post_date": "2021-02-18T15:52:14.317000",
          "content": "<p>Okay, then maybe this is an older version. I'll check with the author of that kernel. 😅</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1208996,
          "author_name": "tito",
          "author_url": "",
          "post_date": "2021-02-18T15:59:26.810000",
          "content": "<p>Or maybe I'm wrong.😅<br>\nI'll set the confidence to 1 and submit it later, and let you know the result here.</p>",
          "votes": 3,
          "replies": []
        },
        {
          "id": 1209003,
          "author_name": "Arka Saha",
          "author_url": "",
          "post_date": "2021-02-18T16:07:43.700000",
          "content": "<p>Thanks, that should clear things up :)</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1209158,
          "author_name": "PC Jimmmy",
          "author_url": "",
          "post_date": "2021-02-18T18:10:39.860000",
          "content": "<p>Like all things statistical - I think the correct answer is it depends.<br>\nI think this is how it depends for this competition.</p>\n<p>You cannot use a confidence of 1 to select the predicted class(es) for an cell.  Hopefully it's obvious that this value will result in no classes being selected for a cell.</p>\n<p>But</p>\n<p>Once you have made a selection and are reporting the class in your submission file than <strong>PERHAPS</strong> you can put a value of 1 in the file without hurting the score.</p>\n<ul>\n<li>not sure why you would do that - you should have code access to the computed probability when you made the decision to select the class(es) - so why not just report that value rather than fake it with a 1?  (Not likely that a metric change will occur for the third time but always a slim chance of a change where the \"1\" does not really hurt)</li>\n</ul>\n<p>This metric is really confusing for me - someone post a nice explanation that seemed to clear up my mind  - but once I found source code that might be in use I got all confused again :)</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1209222,
          "author_name": "tito",
          "author_url": "",
          "post_date": "2021-02-18T18:59:08.633000",
          "content": "<blockquote>\n  <p>I'll set the confidence to 1 and submit it later, and let you know the result here.</p>\n</blockquote>\n<p>I obtained very low LB score of 0.116.<br>\nSo confidence score should be used in LB.</p>\n<p>This is a complex subject and the discussion is often confusing, so It might be a good idea to read reliable source code for mAP. <br>\nAgain, I hope <a href=\"https://www.kaggle.com/its7171/map-understanding-with-code-and-its-tips\" target=\"_blank\">this notebook</a> helps.</p>",
          "votes": 7,
          "replies": []
        },
        {
          "id": 1209755,
          "author_name": "Arka Saha",
          "author_url": "",
          "post_date": "2021-02-19T03:08:31.230000",
          "content": "<blockquote>\n  <p>I obtained very low LB score of 0.116.<br>\n  So confidence score should be used in LB.</p>\n</blockquote>\n<p>I see, thanks <a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> </p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1209785,
          "author_name": "",
          "author_url": "",
          "post_date": "2021-02-19T03:33:29.403000",
          "content": "",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1209829,
          "author_name": "PC Jimmmy",
          "author_url": "",
          "post_date": "2021-02-19T04:04:50.423000",
          "content": "<p>yes - important to include probability 👍😃</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1209923,
          "author_name": "Darek Kłeczek",
          "author_url": "",
          "post_date": "2021-02-19T05:35:19.457000",
          "content": "<p><a href=\"https://www.kaggle.com/arka47\" target=\"_blank\">@arka47</a> <a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> thanks for confirming that confidence is relevant! I was confused by a <a href=\"https://www.kaggle.com/c/hpa-single-cell-image-classification/discussion/215141\" target=\"_blank\">comment by the host</a>: </p>\n<blockquote>\n  <p>Confidence is just ranking of scoring (which mask/label got scored first), so you can set them all to 1 like this and it won't affect your score.</p>\n</blockquote>\n<p><a href=\"https://www.kaggle.com/lnhtrang\" target=\"_blank\">@lnhtrang</a> - can you reconfirm the relevance of the confidence score? Based on the discussion above your comment appears to be incorrect. </p>",
          "votes": 2,
          "replies": []
        },
        {
          "id": 1209951,
          "author_name": "cool_rabbit",
          "author_url": "",
          "post_date": "2021-02-19T05:56:51.743000",
          "content": "<p><a href=\"https://www.kaggle.com/its7171\" target=\"_blank\">@its7171</a> <br>\nThank you very much for your (all confidence==1) submission and the amazing notebook.<br>\nNow I understand the situation as following:<br>\n(All confidence==1) means random ranking.<br>\nFor one class, if there are many \"False\" accidentally around the beginning of the ranking (#1, #2, #3…), the left part of the PR curve closes to 0, where AP score cannot be calculated properly (underestimation).</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1210218,
          "author_name": "Casper Winsnes",
          "author_url": "",
          "post_date": "2021-02-19T09:14:09.947000",
          "content": "<p>With the initial scoring system, the confidence didn't affect the score. After the switch to mAP, the confidence score is indeed being used as part of the scoring.</p>",
          "votes": 4,
          "replies": []
        },
        {
          "id": 1210255,
          "author_name": "Darek Kłeczek",
          "author_url": "",
          "post_date": "2021-02-19T09:46:28.910000",
          "content": "<p>Thanks for confirming!</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1210261,
          "author_name": "tito",
          "author_url": "",
          "post_date": "2021-02-19T09:53:38.700000",
          "content": "<p><a href=\"https://www.kaggle.com/cwinsnes\" target=\"_blank\">@cwinsnes</a>,<br>\nThanks for the clarification.<br>\nIt's all clear now.</p>\n<p><a href=\"https://www.kaggle.com/drtausamaru\" target=\"_blank\">@drtausamaru</a>,</p>\n<pre>For one class, if there are many \"False\" accidentally around the beginning of the ranking (#1, #2, #3…), the left part of the PR curve closes to 0\n</pre>\n<p>Yes, box with a high confidence value have high precision, so Precision/Recall curve is usually a decreasing curve.<br>\nBut if false_positives and ture_positives lists are not sorted,Precision/Recall curve will be a flat curve.<br>\nThis situation can be checked by commenting out the following 3 lines in my notebook.</p>\n<pre>indices = np.argsort(-scores)\nfalse_positives = false_positives[indices]\ntrue_positives = true_positives[indices]\n</pre>",
          "votes": 2,
          "replies": []
        }
      ]
    },
    {
      "id": 1226587,
      "author_name": "Alexander Riedel",
      "author_url": "",
      "post_date": "2021-03-04T17:10:21.200000",
      "content": "<p>So does it makes sense then not to use a threshold for the cell-wise confidences and just put every label and it's according confidence there?</p>",
      "votes": 0,
      "replies": [
        {
          "id": 1226949,
          "author_name": "Darek Kłeczek",
          "author_url": "",
          "post_date": "2021-03-05T03:46:47.117000",
          "content": "<p>Yes - for me this led to the best score. The only caveat is that you need to get the model to work well on negative cells. </p>",
          "votes": 0,
          "replies": []
        }
      ]
    },
    {
      "id": 1205607,
      "author_name": "",
      "author_url": "",
      "post_date": "2021-02-16T20:16:40.437000",
      "content": "",
      "votes": 1,
      "replies": [
        {
          "id": 1207198,
          "author_name": "PC Jimmmy",
          "author_url": "",
          "post_date": "2021-02-17T18:35:43",
          "content": "<p>Nice paper - thanks for the share.  Guess the thing we are missing to do local measurement of mAP is some ground truth segment images.   There are images on the Human Atlas site with segments - have not found how to download any of those to create a set of ground truth's.  Also of course not certain that they are \"annotated\" segments.</p>",
          "votes": 1,
          "replies": []
        },
        {
          "id": 1208583,
          "author_name": "SmileEveryDay",
          "author_url": "",
          "post_date": "2021-02-18T10:48:36.617000",
          "content": "<p>Great read, but I still don't understand how the confidence influences our final score.</p>",
          "votes": 0,
          "replies": []
        },
        {
          "id": 1208838,
          "author_name": "tito",
          "author_url": "",
          "post_date": "2021-02-18T14:06:12.747000",
          "content": "<p>Hi <a href=\"https://www.kaggle.com/lukereijnen\" target=\"_blank\">@lukereijnen</a>,</p>\n<p>Confidence scores is used to sort for the following two purposes.</p>\n<ol>\n<li>detected bounding boxes should be sorted by confidence scores before cehck if TP or FP.</li>\n<li>FP and TP list should be sorted by confidence scores before Average Precision Calculation.</li>\n</ol>\n<p>It is a bit difficult to explain, so I have added this explanation to this note.<br>\n<a href=\"https://www.kaggle.com/its7171/map-understanding-with-code-and-its-tips\" target=\"_blank\">mAP understanding with code and its tips</a><br>\nThis is an mAP description of object detection, not instance segmentation, but it is essentially the same.</p>\n<p>I hope this helps.</p>",
          "votes": 5,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "1205460": "I searched for it all over the competition but can't find the exact difference the confidences makes in the result.",
    "1210956": "This [video](https://www.youtube.com/watch?v=FppOzcDvaDI) explains how confidence scores are used.\nCheck out the first 8 minutes for an explanation of mAP.\nThe rest of the video contains implementation code.",
    "1208850": "@lukereijnen I read somewhere that confidence doesn't affect the score, you can even hardcode it to an arbitrary value. I will update you when I find the source. Edit: https://www.kaggle.com/thedrcat/hpa-single-cell-classification-eda\n\nIt says \"we can always set the confidence to 1 without impacting the score\".",
    "1226587": "So does it makes sense then not to use a threshold for the cell-wise confidences and just put every label and it's according confidence there?",
    "1205607": ""
  }
}