{
  "id": 50060,
  "title": "Could you explain exactly what evaluation metric is?",
  "url": "/competitions/data-science-bowl-2018/discussion/50060",
  "author_name": "",
  "post_date": "2018-02-19T09:08:54.694781Z",
  "votes": 1,
  "comment_count": 6,
  "views": 0,
  "content": "<p>I am really being confused because I do not understand evaluation metric.</p>\n\n<ol>\n<li><p>Is it okay that I just get all mask at once from a image or Do I have to get each mask for each nucleus?</p></li>\n<li><p>I can't figure out difference between FP and FN. could you explain for me about this?</p></li>\n<li><p>Do I have to give a label to each mask corresponding to each nucleus? (it might be the similar question to 1.)</p></li>\n</ol>\n\n<p>please help me...thank you.</p>",
  "messages": [
    {
      "id": "285085",
      "postDate": "02/19/2018 09:08:54",
      "content": "<p>I am really being confused because I do not understand evaluation metric.</p>\n\n<ol>\n<li><p>Is it okay that I just get all mask at once from a image or Do I have to get each mask for each nucleus?</p></li>\n<li><p>I can't figure out difference between FP and FN. could you explain for me about this?</p></li>\n<li><p>Do I have to give a label to each mask corresponding to each nucleus? (it might be the similar question to 1.)</p></li>\n</ol>\n\n<p>please help me...thank you.</p>",
      "rawMarkdown": "I am really being confused because I do not understand evaluation metric.\n\n1. Is it okay that I just get all mask at once from a image or Do I have to get each mask for each nucleus?\n\n2. I can't figure out difference between FP and FN. could you explain for me about this?\n\n3. Do I have to give a label to each mask corresponding to each nucleus? (it might be the similar question to 1.)\n\nplease help me...thank you.",
      "votes": null
    },
    {
      "id": "286169",
      "postDate": "02/21/2018 20:11:37",
      "content": "<p>Yes, each nucleus should gets its own mask. You add a new row in the submission CSV file for every nucleus you find, so if you find 50 nuclei in one image you will add 50 rows in the CSV file.</p>\n\n<p>FP is a false positive. You have predicted that there is a nucleus at this position but there isn't (or at least, the IOU metric is not higher than the threshold, so for example you may have predicted a mask that only overlaps for 40% with the real nucleus but the threshold is 50% or higher and so this prediction does not count).</p>\n\n<p>FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (Again, according to the IOU metric and the threshold.)</p>",
      "rawMarkdown": "Yes, each nucleus should gets its own mask. You add a new row in the submission CSV file for every nucleus you find, so if you find 50 nuclei in one image you will add 50 rows in the CSV file.\n\nFP is a false positive. You have predicted that there is a nucleus at this position but there isn't (or at least, the IOU metric is not higher than the threshold, so for example you may have predicted a mask that only overlaps for 40% with the real nucleus but the threshold is 50% or higher and so this prediction does not count).\n\nFN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (Again, according to the IOU metric and the threshold.)",
      "votes": null
    },
    {
      "id": "303229",
      "postDate": "03/25/2018 20:04:21",
      "content": "<blockquote>\n  <p><strong>Human Analog wrote</strong></p>\n  \n  <p>FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (<strong>Again, according to the IOU metric and the threshold.</strong>)</p>\n</blockquote>\n\n<p>Hi Human Analog,</p>\n\n<p>Could you please clarify what do you mean by \"<em>according to the IoU metric and the threshold</em>\" for FN?\nI thought the calculation of false negatives would <strong>not</strong> use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).</p>\n\n<p>In other words for a threshold t</p>\n\n<blockquote>\n  <p>t=0.5 </p>\n  \n  <p>TP = 0.5 &lt;= IoU &lt;= 1.0 </p>\n  \n  <p>FP = 0 &lt; IoU &lt; 0.5 </p>\n  \n  <p>FN = IoU = 0</p>\n</blockquote>",
      "rawMarkdown": "&gt; **Human Analog wrote**\n&gt; \n&gt; FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (**Again, according to the IOU metric and the threshold.**)\n\nHi Human Analog,\n\nCould you please clarify what do you mean by \"*according to the IoU metric and the threshold*\" for FN?\nI thought the calculation of false negatives would **not** use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).\n\nIn other words for a threshold t\n\n&gt; t=0.5 \n\n&gt; TP = 0.5 &lt;= IoU &lt;= 1.0 \n\n&gt; FP = 0 &lt; IoU &lt; 0.5 \n\n&gt; FN = IoU = 0",
      "votes": null
    },
    {
      "id": "303474",
      "postDate": "03/26/2018 08:56:57",
      "content": "<p>If you make a prediction and its IOU with the ground-truth is less than the threshold it counts as a FP, right? And if there are no predictions for a ground-truth then it counts as FN.</p>\n\n<p>However, if <em>all</em> predictions for that ground-truth are FPs (i.e. if all of them are below the IOU threshold), then it also counts as a FN. After all, this is the same thing as saying there are no predictions for that ground-truth (because none of the existing predictions count).</p>",
      "rawMarkdown": "If you make a prediction and its IOU with the ground-truth is less than the threshold it counts as a FP, right? And if there are no predictions for a ground-truth then it counts as FN.\n\nHowever, if _all_ predictions for that ground-truth are FPs (i.e. if all of them are below the IOU threshold), then it also counts as a FN. After all, this is the same thing as saying there are no predictions for that ground-truth (because none of the existing predictions count).",
      "votes": null
    },
    {
      "id": "304197",
      "postDate": "03/27/2018 06:46:46",
      "content": "<p>Could you clarify what you said more?</p>\n\n<p>Why if all predictions are FPs, FN is counted? I completely did not understand what you said.</p>",
      "rawMarkdown": "Could you clarify what you said more?\n\nWhy if all predictions are FPs, FN is counted? I completely did not understand what you said.",
      "votes": null
    },
    {
      "id": "304198",
      "postDate": "03/27/2018 06:47:03",
      "content": "<p>d</p>",
      "rawMarkdown": "d",
      "votes": null
    },
    {
      "id": "304201",
      "postDate": "03/27/2018 06:50:35",
      "content": "<blockquote>\n  <p><strong>Peter Metz wrote</strong></p>\n  \n  <blockquote>\n    <p>&gt; <strong>Human Analog wrote</strong>\n    &gt; \n    &gt; FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (<strong>Again, according to the IOU metric and the threshold.</strong>)</p>\n  </blockquote>\n  \n  <p>Hi Human Analog,</p>\n  \n  <p>Could you please clarify what do you mean by \"<em>according to the IoU metric and the threshold</em>\" for FN?\n  I thought the calculation of false negatives would <strong>not</strong> use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).</p>\n  \n  <p>In other words for a threshold t</p>\n  \n  <p>&gt; t=0.5 </p>\n  \n  <p>&gt; TP = 0.5 &lt;= IoU &lt;= 1.0 </p>\n  \n  <p>&gt; FP = 0 &lt; IoU &lt; 0.5 </p>\n  \n  <p>&gt; FN = IoU = 0</p>\n</blockquote>\n\n<p>What you said makes sense the most for me.\nBasically, we do not say which prediction indicate which ground-truth because we don't know what ground-truths there are. That's why we cannot say which ground-truth is missing.\nI will proceed my progress based on your comment</p>",
      "rawMarkdown": "&gt; **Peter Metz wrote**\n&gt; \n&gt; &gt; \n&gt; &gt; **Human Analog wrote**\n&gt; &gt; \n&gt; &gt; FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (**Again, according to the IOU metric and the threshold.**)\n&gt; \n&gt; Hi Human Analog,\n&gt; \n&gt; Could you please clarify what do you mean by \"*according to the IoU metric and the threshold*\" for FN?\n&gt; I thought the calculation of false negatives would **not** use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).\n&gt; \n&gt; In other words for a threshold t\n&gt; \n&gt; &gt; t=0.5 \n&gt; \n&gt; &gt; TP = 0.5 &lt;= IoU &lt;= 1.0 \n&gt; \n&gt; &gt; FP = 0 &lt; IoU &lt; 0.5 \n&gt; \n&gt; &gt; FN = IoU = 0\n&gt; \n\nWhat you said makes sense the most for me.\nBasically, we do not say which prediction indicate which ground-truth because we don't know what ground-truths there are. That's why we cannot say which ground-truth is missing.\nI will proceed my progress based on your comment",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 286169,
      "author_name": "humananalog",
      "author_url": "",
      "post_date": "02/21/2018 20:11:37",
      "content": "<p>Yes, each nucleus should gets its own mask. You add a new row in the submission CSV file for every nucleus you find, so if you find 50 nuclei in one image you will add 50 rows in the CSV file.</p>\n\n<p>FP is a false positive. You have predicted that there is a nucleus at this position but there isn't (or at least, the IOU metric is not higher than the threshold, so for example you may have predicted a mask that only overlaps for 40% with the real nucleus but the threshold is 50% or higher and so this prediction does not count).</p>\n\n<p>FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (Again, according to the IOU metric and the threshold.)</p>",
      "votes": null,
      "replies": [
        {
          "id": 303229,
          "author_name": "ksnoxygfwtvirymmg",
          "author_url": "",
          "post_date": "03/25/2018 20:04:21",
          "content": "<blockquote>\n  <p><strong>Human Analog wrote</strong></p>\n  \n  <p>FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (<strong>Again, according to the IOU metric and the threshold.</strong>)</p>\n</blockquote>\n\n<p>Hi Human Analog,</p>\n\n<p>Could you please clarify what do you mean by \"<em>according to the IoU metric and the threshold</em>\" for FN?\nI thought the calculation of false negatives would <strong>not</strong> use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).</p>\n\n<p>In other words for a threshold t</p>\n\n<blockquote>\n  <p>t=0.5 </p>\n  \n  <p>TP = 0.5 &lt;= IoU &lt;= 1.0 </p>\n  \n  <p>FP = 0 &lt; IoU &lt; 0.5 </p>\n  \n  <p>FN = IoU = 0</p>\n</blockquote>",
          "votes": null,
          "replies": []
        },
        {
          "id": 303474,
          "author_name": "humananalog",
          "author_url": "",
          "post_date": "03/26/2018 08:56:57",
          "content": "<p>If you make a prediction and its IOU with the ground-truth is less than the threshold it counts as a FP, right? And if there are no predictions for a ground-truth then it counts as FN.</p>\n\n<p>However, if <em>all</em> predictions for that ground-truth are FPs (i.e. if all of them are below the IOU threshold), then it also counts as a FN. After all, this is the same thing as saying there are no predictions for that ground-truth (because none of the existing predictions count).</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 304197,
          "author_name": "tbop02",
          "author_url": "",
          "post_date": "03/27/2018 06:46:46",
          "content": "<p>Could you clarify what you said more?</p>\n\n<p>Why if all predictions are FPs, FN is counted? I completely did not understand what you said.</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 304198,
          "author_name": "tbop02",
          "author_url": "",
          "post_date": "03/27/2018 06:47:03",
          "content": "<p>d</p>",
          "votes": null,
          "replies": []
        },
        {
          "id": 304201,
          "author_name": "tbop02",
          "author_url": "",
          "post_date": "03/27/2018 06:50:35",
          "content": "<blockquote>\n  <p><strong>Peter Metz wrote</strong></p>\n  \n  <blockquote>\n    <p>&gt; <strong>Human Analog wrote</strong>\n    &gt; \n    &gt; FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (<strong>Again, according to the IOU metric and the threshold.</strong>)</p>\n  </blockquote>\n  \n  <p>Hi Human Analog,</p>\n  \n  <p>Could you please clarify what do you mean by \"<em>according to the IoU metric and the threshold</em>\" for FN?\n  I thought the calculation of false negatives would <strong>not</strong> use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).</p>\n  \n  <p>In other words for a threshold t</p>\n  \n  <p>&gt; t=0.5 </p>\n  \n  <p>&gt; TP = 0.5 &lt;= IoU &lt;= 1.0 </p>\n  \n  <p>&gt; FP = 0 &lt; IoU &lt; 0.5 </p>\n  \n  <p>&gt; FN = IoU = 0</p>\n</blockquote>\n\n<p>What you said makes sense the most for me.\nBasically, we do not say which prediction indicate which ground-truth because we don't know what ground-truths there are. That's why we cannot say which ground-truth is missing.\nI will proceed my progress based on your comment</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "285085": "I am really being confused because I do not understand evaluation metric.\n\n1. Is it okay that I just get all mask at once from a image or Do I have to get each mask for each nucleus?\n\n2. I can't figure out difference between FP and FN. could you explain for me about this?\n\n3. Do I have to give a label to each mask corresponding to each nucleus? (it might be the similar question to 1.)\n\nplease help me...thank you.",
    "286169": "Yes, each nucleus should gets its own mask. You add a new row in the submission CSV file for every nucleus you find, so if you find 50 nuclei in one image you will add 50 rows in the CSV file.\n\nFP is a false positive. You have predicted that there is a nucleus at this position but there isn't (or at least, the IOU metric is not higher than the threshold, so for example you may have predicted a mask that only overlaps for 40% with the real nucleus but the threshold is 50% or higher and so this prediction does not count).\n\nFN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (Again, according to the IOU metric and the threshold.)",
    "303229": "&gt; **Human Analog wrote**\n&gt; \n&gt; FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (**Again, according to the IOU metric and the threshold.**)\n\nHi Human Analog,\n\nCould you please clarify what do you mean by \"*according to the IoU metric and the threshold*\" for FN?\nI thought the calculation of false negatives would **not** use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).\n\nIn other words for a threshold t\n\n&gt; t=0.5 \n\n&gt; TP = 0.5 &lt;= IoU &lt;= 1.0 \n\n&gt; FP = 0 &lt; IoU &lt; 0.5 \n\n&gt; FN = IoU = 0",
    "303474": "If you make a prediction and its IOU with the ground-truth is less than the threshold it counts as a FP, right? And if there are no predictions for a ground-truth then it counts as FN.\n\nHowever, if _all_ predictions for that ground-truth are FPs (i.e. if all of them are below the IOU threshold), then it also counts as a FN. After all, this is the same thing as saying there are no predictions for that ground-truth (because none of the existing predictions count).",
    "304197": "Could you clarify what you said more?\n\nWhy if all predictions are FPs, FN is counted? I completely did not understand what you said.",
    "304198": "d",
    "304201": "&gt; **Peter Metz wrote**\n&gt; \n&gt; &gt; \n&gt; &gt; **Human Analog wrote**\n&gt; &gt; \n&gt; &gt; FN is a false negative. These are the nuclei that you did not provide predictions for, i.e. the predictions that you missed. (**Again, according to the IOU metric and the threshold.**)\n&gt; \n&gt; Hi Human Analog,\n&gt; \n&gt; Could you please clarify what do you mean by \"*according to the IoU metric and the threshold*\" for FN?\n&gt; I thought the calculation of false negatives would **not** use the thresholds, because it's a false negative when I completely missed a nuclei instance, e.g. I didn't just predict it with an accuracy below threshold (which is FP) but completely overlooked it's existence, meaning that there is no mask for that instance to compute IoU for at all! (which could be seen as an IoU of 0 I guess).\n&gt; \n&gt; In other words for a threshold t\n&gt; \n&gt; &gt; t=0.5 \n&gt; \n&gt; &gt; TP = 0.5 &lt;= IoU &lt;= 1.0 \n&gt; \n&gt; &gt; FP = 0 &lt; IoU &lt; 0.5 \n&gt; \n&gt; &gt; FN = IoU = 0\n&gt; \n\nWhat you said makes sense the most for me.\nBasically, we do not say which prediction indicate which ground-truth because we don't know what ground-truths there are. That's why we cannot say which ground-truth is missing.\nI will proceed my progress based on your comment"
  },
  "source": "meta"
}