{
  "id": 535093,
  "title": "Calculate your metric faster and more efficiently!",
  "url": "/competitions/child-mind-institute-problematic-internet-use/discussion/535093",
  "author_name": "",
  "post_date": "2024-09-20T08:37:53.679713900Z",
  "votes": 31,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Hello all,</p>\n<p>I wish to collate a few materials that may help one to understand the evaluation metric better. This is imperative as a starter process for the assignment- </p>\n<h2>Explanatory materials</h2>\n<ol>\n<li><a href=\"https://www.kaggle.com/code/taikimori/metric-understand-quadratic-weighted-kappa\" target=\"_blank\">https://www.kaggle.com/code/taikimori/metric-understand-quadratic-weighted-kappa</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/learning-agency-lab-automated-essay-scoring-2/discussion/495134\" target=\"_blank\">https://www.kaggle.com/competitions/learning-agency-lab-automated-essay-scoring-2/discussion/495134</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/petfinder-adoption-prediction/discussion/76106\" target=\"_blank\">https://www.kaggle.com/competitions/petfinder-adoption-prediction/discussion/76106</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/liverpool-ion-switching/discussion/132260\" target=\"_blank\">https://www.kaggle.com/competitions/liverpool-ion-switching/discussion/132260</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/playground-series-s3e5/discussion/383479\" target=\"_blank\">https://www.kaggle.com/competitions/playground-series-s3e5/discussion/383479</a></li>\n</ol>\n<p>The below references are useful to deviate from the sklearn cohen_kappa_score and build one's own metric more effectively- </p>\n<ul>\n<li>Kappa metric for PyTorch is as <a href=\"https://github.com/Mamiglia/WeightedKappaLoss\" target=\"_blank\">here</a> </li>\n<li>Sklearn methods are not particularly written for performance and speed. Here is a way to expedite the calculation using 3 options <a href=\"https://www.kaggle.com/code/cpmpml/ultra-fast-qwk-calc-method\" target=\"_blank\">here</a></li>\n<li>Given below is another kernel on similar lines, comparing <code>numpy and numba</code> effectively <a href=\"https://www.kaggle.com/code/jiweiliu/qwk-cupy-vs-numpy-vs-numba\" target=\"_blank\">here</a></li>\n</ul>\n<h2>YouTube references</h2>\n<ul>\n<li><a href=\"https://www.youtube.com/watch?v=VlkTX3_aS1c\" target=\"_blank\">https://www.youtube.com/watch?v=VlkTX3_aS1c</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=DfNo32nL_fo\" target=\"_blank\">https://www.youtube.com/watch?v=DfNo32nL_fo</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=K_u3xnBo1Z0\" target=\"_blank\">https://www.youtube.com/watch?v=K_u3xnBo1Z0</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=zaB6aeu9kNU\" target=\"_blank\">https://www.youtube.com/watch?v=zaB6aeu9kNU</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=mCAjVBSgCJI\" target=\"_blank\">https://www.youtube.com/watch?v=mCAjVBSgCJI</a></li>\n</ul>\n<p>Best regards!</p>",
  "messages": [
    {
      "id": "2993784",
      "postDate": "09/20/2024 08:37:53",
      "content": "<p>Hello all,</p>\n<p>I wish to collate a few materials that may help one to understand the evaluation metric better. This is imperative as a starter process for the assignment- </p>\n<h2>Explanatory materials</h2>\n<ol>\n<li><a href=\"https://www.kaggle.com/code/taikimori/metric-understand-quadratic-weighted-kappa\" target=\"_blank\">https://www.kaggle.com/code/taikimori/metric-understand-quadratic-weighted-kappa</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/learning-agency-lab-automated-essay-scoring-2/discussion/495134\" target=\"_blank\">https://www.kaggle.com/competitions/learning-agency-lab-automated-essay-scoring-2/discussion/495134</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/petfinder-adoption-prediction/discussion/76106\" target=\"_blank\">https://www.kaggle.com/competitions/petfinder-adoption-prediction/discussion/76106</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/liverpool-ion-switching/discussion/132260\" target=\"_blank\">https://www.kaggle.com/competitions/liverpool-ion-switching/discussion/132260</a></li>\n<li><a href=\"https://www.kaggle.com/competitions/playground-series-s3e5/discussion/383479\" target=\"_blank\">https://www.kaggle.com/competitions/playground-series-s3e5/discussion/383479</a></li>\n</ol>\n<p>The below references are useful to deviate from the sklearn cohen_kappa_score and build one's own metric more effectively- </p>\n<ul>\n<li>Kappa metric for PyTorch is as <a href=\"https://github.com/Mamiglia/WeightedKappaLoss\" target=\"_blank\">here</a> </li>\n<li>Sklearn methods are not particularly written for performance and speed. Here is a way to expedite the calculation using 3 options <a href=\"https://www.kaggle.com/code/cpmpml/ultra-fast-qwk-calc-method\" target=\"_blank\">here</a></li>\n<li>Given below is another kernel on similar lines, comparing <code>numpy and numba</code> effectively <a href=\"https://www.kaggle.com/code/jiweiliu/qwk-cupy-vs-numpy-vs-numba\" target=\"_blank\">here</a></li>\n</ul>\n<h2>YouTube references</h2>\n<ul>\n<li><a href=\"https://www.youtube.com/watch?v=VlkTX3_aS1c\" target=\"_blank\">https://www.youtube.com/watch?v=VlkTX3_aS1c</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=DfNo32nL_fo\" target=\"_blank\">https://www.youtube.com/watch?v=DfNo32nL_fo</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=K_u3xnBo1Z0\" target=\"_blank\">https://www.youtube.com/watch?v=K_u3xnBo1Z0</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=zaB6aeu9kNU\" target=\"_blank\">https://www.youtube.com/watch?v=zaB6aeu9kNU</a></li>\n<li><a href=\"https://www.youtube.com/watch?v=mCAjVBSgCJI\" target=\"_blank\">https://www.youtube.com/watch?v=mCAjVBSgCJI</a></li>\n</ul>\n<p>Best regards!</p>",
      "rawMarkdown": "Hello all,\n\nI wish to collate a few materials that may help one to understand the evaluation metric better. This is imperative as a starter process for the assignment- \n\n## Explanatory materials\n1. https://www.kaggle.com/code/taikimori/metric-understand-quadratic-weighted-kappa\n2. https://www.kaggle.com/competitions/learning-agency-lab-automated-essay-scoring-2/discussion/495134\n3. https://www.kaggle.com/competitions/petfinder-adoption-prediction/discussion/76106\n4. https://www.kaggle.com/competitions/liverpool-ion-switching/discussion/132260\n5. https://www.kaggle.com/competitions/playground-series-s3e5/discussion/383479\n\nThe below references are useful to deviate from the sklearn cohen_kappa_score and build one's own metric more effectively- \n\n- Kappa metric for PyTorch is as [here](https://github.com/Mamiglia/WeightedKappaLoss) \n- Sklearn methods are not particularly written for performance and speed. Here is a way to expedite the calculation using 3 options [here](https://www.kaggle.com/code/cpmpml/ultra-fast-qwk-calc-method)\n- Given below is another kernel on similar lines, comparing `numpy and numba` effectively [here](https://www.kaggle.com/code/jiweiliu/qwk-cupy-vs-numpy-vs-numba)\n\n## YouTube references \n- https://www.youtube.com/watch?v=VlkTX3_aS1c\n- https://www.youtube.com/watch?v=DfNo32nL_fo\n- https://www.youtube.com/watch?v=K_u3xnBo1Z0\n- https://www.youtube.com/watch?v=zaB6aeu9kNU\n- https://www.youtube.com/watch?v=mCAjVBSgCJI\n\nBest regards!",
      "votes": null
    },
    {
      "id": "3008982",
      "postDate": "10/07/2024 11:13:41",
      "content": "<p>very useful information, thank you</p>",
      "rawMarkdown": "very useful information, thank you",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3008982,
      "author_name": "oksanatemruk",
      "author_url": "",
      "post_date": "10/07/2024 11:13:41",
      "content": "<p>very useful information, thank you</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "2993784": "Hello all,\n\nI wish to collate a few materials that may help one to understand the evaluation metric better. This is imperative as a starter process for the assignment- \n\n## Explanatory materials\n1. https://www.kaggle.com/code/taikimori/metric-understand-quadratic-weighted-kappa\n2. https://www.kaggle.com/competitions/learning-agency-lab-automated-essay-scoring-2/discussion/495134\n3. https://www.kaggle.com/competitions/petfinder-adoption-prediction/discussion/76106\n4. https://www.kaggle.com/competitions/liverpool-ion-switching/discussion/132260\n5. https://www.kaggle.com/competitions/playground-series-s3e5/discussion/383479\n\nThe below references are useful to deviate from the sklearn cohen_kappa_score and build one's own metric more effectively- \n\n- Kappa metric for PyTorch is as [here](https://github.com/Mamiglia/WeightedKappaLoss) \n- Sklearn methods are not particularly written for performance and speed. Here is a way to expedite the calculation using 3 options [here](https://www.kaggle.com/code/cpmpml/ultra-fast-qwk-calc-method)\n- Given below is another kernel on similar lines, comparing `numpy and numba` effectively [here](https://www.kaggle.com/code/jiweiliu/qwk-cupy-vs-numpy-vs-numba)\n\n## YouTube references \n- https://www.youtube.com/watch?v=VlkTX3_aS1c\n- https://www.youtube.com/watch?v=DfNo32nL_fo\n- https://www.youtube.com/watch?v=K_u3xnBo1Z0\n- https://www.youtube.com/watch?v=zaB6aeu9kNU\n- https://www.youtube.com/watch?v=mCAjVBSgCJI\n\nBest regards!",
    "3008982": "very useful information, thank you"
  },
  "source": "meta"
}