{
  "id": 146460,
  "title": "TF Addons - Cohen Kappa Metric ",
  "url": "/competitions/prostate-cancer-grade-assessment/discussion/146460",
  "author_name": "torch",
  "post_date": "2020-04-27T07:55:10.495000",
  "votes": 2,
  "comment_count": 1,
  "views": 0,
  "content": "<p>Tensorflow Addons API provides Cohen Kappa metric pre-built. If you're using TF then you can just do,</p>\n\n<p>```\nmetrics = tfa.metrics.CohenKappa(classes=?,weighted=?)</p>\n\n<p>```\nwhere, classes is the number of classes and weighted is either None or Quadratic.</p>\n\n<p>Find more here,\n<a href=\"https://www.tensorflow.org/addons/api_docs/python/tfa/metrics/CohenKappa\">https://www.tensorflow.org/addons/api_docs/python/tfa/metrics/CohenKappa</a></p>",
  "messages": [
    {
      "id": 822870,
      "postDate": "2020-04-27T07:55:10.497Z",
      "content": "<p>Tensorflow Addons API provides Cohen Kappa metric pre-built. If you're using TF then you can just do,</p>\n\n<p>```\nmetrics = tfa.metrics.CohenKappa(classes=?,weighted=?)</p>\n\n<p>```\nwhere, classes is the number of classes and weighted is either None or Quadratic.</p>\n\n<p>Find more here,\n<a href=\"https://www.tensorflow.org/addons/api_docs/python/tfa/metrics/CohenKappa\">https://www.tensorflow.org/addons/api_docs/python/tfa/metrics/CohenKappa</a></p>",
      "rawMarkdown": "Tensorflow Addons API provides Cohen Kappa metric pre-built. If you're using TF then you can just do,\n\n```\nmetrics = tfa.metrics.CohenKappa(classes=?,weighted=?)\n\n```\nwhere, classes is the number of classes and weighted is either None or Quadratic.\n\nFind more here,\nhttps://www.tensorflow.org/addons/api_docs/python/tfa/metrics/CohenKappa",
      "votes": 3
    },
    {
      "id": 825479,
      "postDate": "2020-04-29T03:19:55.763Z",
      "content": "<p>Have you tried using it with a Tensorflow 2 model? I am getting errors while running a model with TPU.</p>",
      "rawMarkdown": "Have you tried using it with a Tensorflow 2 model? I am getting errors while running a model with TPU.",
      "votes": 1
    }
  ],
  "comments": [
    {
      "id": 825479,
      "author_name": "Nikhil Dange",
      "author_url": "",
      "post_date": "2020-04-29T03:19:55.763000",
      "content": "<p>Have you tried using it with a Tensorflow 2 model? I am getting errors while running a model with TPU.</p>",
      "votes": 1,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "822870": "Tensorflow Addons API provides Cohen Kappa metric pre-built. If you're using TF then you can just do,\n\n```\nmetrics = tfa.metrics.CohenKappa(classes=?,weighted=?)\n\n```\nwhere, classes is the number of classes and weighted is either None or Quadratic.\n\nFind more here,\nhttps://www.tensorflow.org/addons/api_docs/python/tfa/metrics/CohenKappa",
    "825479": "Have you tried using it with a Tensorflow 2 model? I am getting errors while running a model with TPU."
  }
}