{
  "id": 567216,
  "title": "Explanation of Fβ-score Metric",
  "url": "/competitions/byu-locating-bacterial-flagellar-motors-2025/discussion/567216",
  "author_name": "",
  "post_date": "2025-03-09T05:17:38.777851400Z",
  "votes": 15,
  "comment_count": 1,
  "views": 0,
  "content": "<h3>Basics</h3>\n<h4>Precision and Recall</h4>\n<p><strong>Precision</strong>: What proportion of the positive identifications (predicted boxes) was actually correct?</p>\n<p><code>Precision = TP/(TP + FP)</code></p>\n<p><strong>Recall</strong>: What proportion of actual positives was identified correctly?</p>\n<p><code>Recall = TP / (TP + FN)</code></p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F09664bad1cd512ee26aa8cfea0b6d758%2FFP.JPG?generation=1741495578492483&amp;alt=media\" alt=\"![\">]</p>\n<p><strong>TP</strong>: <code>True Positives</code>. You Predict, and it is correct.</p>\n<p><strong>FP</strong>: <code>False Positives</code>. You Predict, but it is wrong</p>\n<p><strong>FN</strong>: <code>False Negative</code>. You did not predict. and it is worng. You should have predicted</p>\n<p>There are no true negatives(TN) in object detection</p>\n<h3>Fβ-score</h3>\n<ul>\n<li><p><strong><code>F1-Score</code></strong>: The F1 Score is the harmonic mean of precision and recall, providing a balanced assessment of a model's performance while considering both false positives and false negativs </p></li>\n<li><p><strong><code>F0.5-Score</code></strong>: The F0.5 Score is a variation of the F1 Score that places more emphasis on precision than recall.</p></li>\n<li><p><strong><code>F2-Score</code></strong>: The F2 Score is a variation of the F1 Score that places more emphasis on recall than precision. <br>\nIt means that competition host Focus more on the presence of actual boxes rather than the accuracy of box predictions.</p></li>\n</ul>\n<h2>Case 1: Precision = Recall</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F52de9b51f2da84ba338cad5ddb64fb10%2Fsit0.JPG?generation=1741496681116880&amp;alt=media\" alt=\"\"></p>\n<h2>Case 2: Precision &lt; Recall</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fea8bd3859644a30c0ada0615015c037b%2Fsit0.JPG?generation=1741496851061704&amp;alt=media\" alt=\"\"></p>\n<h2>Case 3: Precision &gt; Recall</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F858e78159de7e4e6d281915e60d01bb7%2Fsit%202.JPG?generation=1741496761707696&amp;alt=media\" alt=\"\"></p>\n<h1>Euclidean distance</h1>\n<ul>\n<li><p><strong>True Positive (TP)</strong>: If <code>|y−y¯|2≤τ</code>, the prediction is within threshold.</p></li>\n<li><p><strong>False Negative (FN)</strong>: If <code>|y−y¯|2&gt;τ</code>, the prediction is outside of threshold.</p></li>\n</ul>\n<p>Threshold:  <code>τ=1000 Angstroms.</code></p>\n<h3>if |y−y¯|2&gt;τ, Decrease TP, Increase FN</h3>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fe0baaff5d7aef38170df584f91b05757%2FEUCLIDE.JPG?generation=1741498287340289&amp;alt=media\" alt=\"\"></p>",
  "messages": [
    {
      "id": "3144956",
      "postDate": "03/09/2025 05:17:38",
      "content": "<h3>Basics</h3>\n<h4>Precision and Recall</h4>\n<p><strong>Precision</strong>: What proportion of the positive identifications (predicted boxes) was actually correct?</p>\n<p><code>Precision = TP/(TP + FP)</code></p>\n<p><strong>Recall</strong>: What proportion of actual positives was identified correctly?</p>\n<p><code>Recall = TP / (TP + FN)</code></p>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F09664bad1cd512ee26aa8cfea0b6d758%2FFP.JPG?generation=1741495578492483&amp;alt=media\" alt=\"![\">]</p>\n<p><strong>TP</strong>: <code>True Positives</code>. You Predict, and it is correct.</p>\n<p><strong>FP</strong>: <code>False Positives</code>. You Predict, but it is wrong</p>\n<p><strong>FN</strong>: <code>False Negative</code>. You did not predict. and it is worng. You should have predicted</p>\n<p>There are no true negatives(TN) in object detection</p>\n<h3>Fβ-score</h3>\n<ul>\n<li><p><strong><code>F1-Score</code></strong>: The F1 Score is the harmonic mean of precision and recall, providing a balanced assessment of a model's performance while considering both false positives and false negativs </p></li>\n<li><p><strong><code>F0.5-Score</code></strong>: The F0.5 Score is a variation of the F1 Score that places more emphasis on precision than recall.</p></li>\n<li><p><strong><code>F2-Score</code></strong>: The F2 Score is a variation of the F1 Score that places more emphasis on recall than precision. <br>\nIt means that competition host Focus more on the presence of actual boxes rather than the accuracy of box predictions.</p></li>\n</ul>\n<h2>Case 1: Precision = Recall</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F52de9b51f2da84ba338cad5ddb64fb10%2Fsit0.JPG?generation=1741496681116880&amp;alt=media\" alt=\"\"></p>\n<h2>Case 2: Precision &lt; Recall</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fea8bd3859644a30c0ada0615015c037b%2Fsit0.JPG?generation=1741496851061704&amp;alt=media\" alt=\"\"></p>\n<h2>Case 3: Precision &gt; Recall</h2>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F858e78159de7e4e6d281915e60d01bb7%2Fsit%202.JPG?generation=1741496761707696&amp;alt=media\" alt=\"\"></p>\n<h1>Euclidean distance</h1>\n<ul>\n<li><p><strong>True Positive (TP)</strong>: If <code>|y−y¯|2≤τ</code>, the prediction is within threshold.</p></li>\n<li><p><strong>False Negative (FN)</strong>: If <code>|y−y¯|2&gt;τ</code>, the prediction is outside of threshold.</p></li>\n</ul>\n<p>Threshold:  <code>τ=1000 Angstroms.</code></p>\n<h3>if |y−y¯|2&gt;τ, Decrease TP, Increase FN</h3>\n<p><img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fe0baaff5d7aef38170df584f91b05757%2FEUCLIDE.JPG?generation=1741498287340289&amp;alt=media\" alt=\"\"></p>",
      "rawMarkdown": "### Basics\n\n#### Precision and Recall\n**Precision**: What proportion of the positive identifications (predicted boxes) was actually correct?\n\n`Precision = TP/(TP + FP)`\n\n**Recall**: What proportion of actual positives was identified correctly?\n\n`Recall = TP / (TP + FN)`\n\n\n![![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F09664bad1cd512ee26aa8cfea0b6d758%2FFP.JPG?generation=1741495578492483&alt=media)]\n\n**TP**: `True Positives`. You Predict, and it is correct.\n\n**FP**: `False Positives`. You Predict, but it is wrong\n\n**FN**: `False Negative`. You did not predict. and it is worng. You should have predicted\n\nThere are no true negatives(TN) in object detection\n\n### Fβ-score\n\n- **`F1-Score`**: The F1 Score is the harmonic mean of precision and recall, providing a balanced assessment of a model's performance while considering both false positives and false negativs \n\n- **`F0.5-Score`**: The F0.5 Score is a variation of the F1 Score that places more emphasis on precision than recall.\n\n\n- **`F2-Score`**: The F2 Score is a variation of the F1 Score that places more emphasis on recall than precision. \nIt means that competition host Focus more on the presence of actual boxes rather than the accuracy of box predictions.\n\n\n## Case 1: Precision = Recall\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F52de9b51f2da84ba338cad5ddb64fb10%2Fsit0.JPG?generation=1741496681116880&alt=media)\n\n## Case 2: Precision < Recall\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fea8bd3859644a30c0ada0615015c037b%2Fsit0.JPG?generation=1741496851061704&alt=media)\n\n## Case 3: Precision > Recall\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F858e78159de7e4e6d281915e60d01bb7%2Fsit%202.JPG?generation=1741496761707696&alt=media)\n\n# Euclidean distance \n\n- **True Positive (TP)**: If `|y−y¯|2≤τ`, the prediction is within threshold.\n\n- **False Negative (FN)**: If `|y−y¯|2>τ`, the prediction is outside of threshold.\n\nThreshold:  `τ=1000 Angstroms.`\n\n### if |y−y¯|2>τ, Decrease TP, Increase FN\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fe0baaff5d7aef38170df584f91b05757%2FEUCLIDE.JPG?generation=1741498287340289&alt=media)",
      "votes": null
    },
    {
      "id": "3160544",
      "postDate": "03/26/2025 22:26:13",
      "content": "<p>Thanks for the explanation!</p>",
      "rawMarkdown": "Thanks for the explanation!",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3160544,
      "author_name": "",
      "author_url": "",
      "post_date": "03/26/2025 22:26:13",
      "content": "<p>Thanks for the explanation!</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3144956": "### Basics\n\n#### Precision and Recall\n**Precision**: What proportion of the positive identifications (predicted boxes) was actually correct?\n\n`Precision = TP/(TP + FP)`\n\n**Recall**: What proportion of actual positives was identified correctly?\n\n`Recall = TP / (TP + FN)`\n\n\n![![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F09664bad1cd512ee26aa8cfea0b6d758%2FFP.JPG?generation=1741495578492483&alt=media)]\n\n**TP**: `True Positives`. You Predict, and it is correct.\n\n**FP**: `False Positives`. You Predict, but it is wrong\n\n**FN**: `False Negative`. You did not predict. and it is worng. You should have predicted\n\nThere are no true negatives(TN) in object detection\n\n### Fβ-score\n\n- **`F1-Score`**: The F1 Score is the harmonic mean of precision and recall, providing a balanced assessment of a model's performance while considering both false positives and false negativs \n\n- **`F0.5-Score`**: The F0.5 Score is a variation of the F1 Score that places more emphasis on precision than recall.\n\n\n- **`F2-Score`**: The F2 Score is a variation of the F1 Score that places more emphasis on recall than precision. \nIt means that competition host Focus more on the presence of actual boxes rather than the accuracy of box predictions.\n\n\n## Case 1: Precision = Recall\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F52de9b51f2da84ba338cad5ddb64fb10%2Fsit0.JPG?generation=1741496681116880&alt=media)\n\n## Case 2: Precision < Recall\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fea8bd3859644a30c0ada0615015c037b%2Fsit0.JPG?generation=1741496851061704&alt=media)\n\n## Case 3: Precision > Recall\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2F858e78159de7e4e6d281915e60d01bb7%2Fsit%202.JPG?generation=1741496761707696&alt=media)\n\n# Euclidean distance \n\n- **True Positive (TP)**: If `|y−y¯|2≤τ`, the prediction is within threshold.\n\n- **False Negative (FN)**: If `|y−y¯|2>τ`, the prediction is outside of threshold.\n\nThreshold:  `τ=1000 Angstroms.`\n\n### if |y−y¯|2>τ, Decrease TP, Increase FN\n\n![](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F16438831%2Fe0baaff5d7aef38170df584f91b05757%2FEUCLIDE.JPG?generation=1741498287340289&alt=media)",
    "3160544": "Thanks for the explanation!"
  },
  "source": "meta"
}