{
  "id": 67232,
  "title": "Clarification of evaluation metric?",
  "url": "/competitions/airbus-ship-detection/discussion/67232",
  "author_name": "",
  "post_date": "2018-09-30T10:51:06.575666300Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>The equation for calculating the F2 score is given in the <a href=\"https://www.kaggle.com/c/airbus-ship-detection#evaluation\">challenge description section on evaluation</a> as:</p>\n\n<p>Fβ(t) = ((1+β2)⋅TP(t)) / ((1+β2)⋅TP(t)+β2⋅FN(t)+FP(t))</p>\n\n<p>Where β = 2.</p>\n\n<p>If I have understood this correctly, where there are no ground truths in a sample (i.e. no boats) the F2 score equates to zero, irregardless of how many false positives are present in the prediction.  In other words, <strong>you can predict as many boats as you like in a picture with no boats with no impact on your score</strong>.  </p>\n\n<p>This really doesn't seem right.  Am I missing something?  Is something missing from the metric calculation description?</p>\n\n<p>Thanks in advance for any light anyone can shed on this.</p>\n\n<p>Happy predicting</p>\n\n<p>Leo</p>",
  "messages": [
    {
      "id": "396258",
      "postDate": "09/30/2018 10:51:06",
      "content": "<p>The equation for calculating the F2 score is given in the <a href=\"https://www.kaggle.com/c/airbus-ship-detection#evaluation\">challenge description section on evaluation</a> as:</p>\n\n<p>Fβ(t) = ((1+β2)⋅TP(t)) / ((1+β2)⋅TP(t)+β2⋅FN(t)+FP(t))</p>\n\n<p>Where β = 2.</p>\n\n<p>If I have understood this correctly, where there are no ground truths in a sample (i.e. no boats) the F2 score equates to zero, irregardless of how many false positives are present in the prediction.  In other words, <strong>you can predict as many boats as you like in a picture with no boats with no impact on your score</strong>.  </p>\n\n<p>This really doesn't seem right.  Am I missing something?  Is something missing from the metric calculation description?</p>\n\n<p>Thanks in advance for any light anyone can shed on this.</p>\n\n<p>Happy predicting</p>\n\n<p>Leo</p>",
      "rawMarkdown": "The equation for calculating the F2 score is given in the [challenge description section on evaluation][1] as:\n\nFβ(t) = ((1+β2)⋅TP(t)) / ((1+β2)⋅TP(t)+β2⋅FN(t)+FP(t))\n\nWhere β = 2.\n\nIf I have understood this correctly, where there are no ground truths in a sample (i.e. no boats) the F2 score equates to zero, irregardless of how many false positives are present in the prediction.  In other words, **you can predict as many boats as you like in a picture with no boats with no impact on your score**.  \n\nThis really doesn't seem right.  Am I missing something?  Is something missing from the metric calculation description?\n\nThanks in advance for any light anyone can shed on this.\n\nHappy predicting\n\nLeo\n\n\n  [1]: https://www.kaggle.com/c/airbus-ship-detection#evaluation",
      "votes": null
    },
    {
      "id": "396352",
      "postDate": "09/30/2018 14:51:29",
      "content": "<p>No boats in ground truth means TP must be zero, thus any non-zero FP will cause F2 score to be zero. You get 1 if FP is also zero by the definition of F2 score. \nThus, to get 1, u need to not have any FP. This makes sense since the only correct prediction for an empty image is empty prediction.</p>",
      "rawMarkdown": "No boats in ground truth means TP must be zero, thus any non-zero FP will cause F2 score to be zero. You get 1 if FP is also zero by the definition of F2 score. \nThus, to get 1, u need to not have any FP. This makes sense since the only correct prediction for an empty image is empty prediction.",
      "votes": null
    },
    {
      "id": "396373",
      "postDate": "09/30/2018 15:34:03",
      "content": "<p>OK, now I understand, thanks.  The prediction of no boats in a pic without boats counts as one TP for the sake of the metric.</p>",
      "rawMarkdown": "OK, now I understand, thanks.  The prediction of no boats in a pic without boats counts as one TP for the sake of the metric.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 396352,
      "author_name": "woodywang",
      "author_url": "",
      "post_date": "09/30/2018 14:51:29",
      "content": "<p>No boats in ground truth means TP must be zero, thus any non-zero FP will cause F2 score to be zero. You get 1 if FP is also zero by the definition of F2 score. \nThus, to get 1, u need to not have any FP. This makes sense since the only correct prediction for an empty image is empty prediction.</p>",
      "votes": null,
      "replies": [
        {
          "id": 396373,
          "author_name": "leoauri",
          "author_url": "",
          "post_date": "09/30/2018 15:34:03",
          "content": "<p>OK, now I understand, thanks.  The prediction of no boats in a pic without boats counts as one TP for the sake of the metric.</p>",
          "votes": null,
          "replies": []
        }
      ]
    }
  ],
  "raw_markdown_by_id": {
    "396258": "The equation for calculating the F2 score is given in the [challenge description section on evaluation][1] as:\n\nFβ(t) = ((1+β2)⋅TP(t)) / ((1+β2)⋅TP(t)+β2⋅FN(t)+FP(t))\n\nWhere β = 2.\n\nIf I have understood this correctly, where there are no ground truths in a sample (i.e. no boats) the F2 score equates to zero, irregardless of how many false positives are present in the prediction.  In other words, **you can predict as many boats as you like in a picture with no boats with no impact on your score**.  \n\nThis really doesn't seem right.  Am I missing something?  Is something missing from the metric calculation description?\n\nThanks in advance for any light anyone can shed on this.\n\nHappy predicting\n\nLeo\n\n\n  [1]: https://www.kaggle.com/c/airbus-ship-detection#evaluation",
    "396352": "No boats in ground truth means TP must be zero, thus any non-zero FP will cause F2 score to be zero. You get 1 if FP is also zero by the definition of F2 score. \nThus, to get 1, u need to not have any FP. This makes sense since the only correct prediction for an empty image is empty prediction.",
    "396373": "OK, now I understand, thanks.  The prediction of no boats in a pic without boats counts as one TP for the sake of the metric."
  },
  "source": "meta"
}