{"id":5648976,"date":"2023-09-22T10:16:47","date_gmt":"2023-09-22T14:16:47","guid":{"rendered":"https:\/\/lightning.ai\/pages\/?p=5648976"},"modified":"2023-09-27T06:14:57","modified_gmt":"2023-09-27T10:14:57","slug":"torchmetrics-v1.2","status":"publish","type":"post","link":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/","title":{"rendered":"Torchmetrics v1.2"},"content":{"rendered":"<p>Torchmetrics v1.2 is out now! The latest release includes 11 new metrics within a new subdomain: <em>Clustering<\/em>. In this blog post, we briefly explain what clustering is, why it\u2019s a useful measure, and newly added metrics that can be used with code samples.<\/p>\n<h2>Clustering: What is it?<\/h2>\n<p>Clustering is an <em>unsupervised learning<\/em> technique. The term unsupervised here refers to the fact that we do not have ground truth targets as we do in classification. <strong>The primary goal of clustering is to discover hidden patterns or structures within data without having any prior knowledge about the data meaning or importance of particular features.<\/strong> Thus, clustering is a form of data exploration compared to <em>supervised<\/em> learning, where the goal is \u201cjust\u201d to predict if a data point belongs to one class.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"attachment_5648978\" style=\"width: 884px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-5648978\" class=\" wp-image-5648978\" src=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png\" alt=\"\" width=\"874\" height=\"405\" srcset=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png 300w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-1024x476.png 1024w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-1536x714.png 1536w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2.png 2017w, https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139@2x.png 600w\" sizes=\"(max-width: 874px) 100vw, 874px\" \/><p id=\"caption-attachment-5648978\" class=\"wp-caption-text\">Clustering is, at a glance, closely related to classification; however, there are core differences. In classification, we know beforehand how many classes we are trying to model. For clustering, we do not. Figure from <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2021\/05\/what-why-and-how-of-spectral-clustering\/\">here<\/a>.<\/p><\/div>\n<p>The key goal of <em>clustering algorithms<\/em> is to split data into clusters\/sets where data points from the same cluster are more similar to each other than any other points from the remaining clusters. Some of the most common and widely used clustering algorithms are <a href=\"https:\/\/en.wikipedia.org\/wiki\/K-means_clustering\">K-Means<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hierarchical_clustering\">Hierarchical clustering<\/a>, and <a href=\"https:\/\/brilliant.org\/wiki\/gaussian-mixture-model\/\">Gaussian Mixture Models (GMM)<\/a>.<\/p>\n<p>An objective quality evaluation\/measure is required regardless of what clustering algorithm or internal optimization criterion is used. In general, we can divide all clustering metrics into two categories: extrinsic metrics and intrinsic metrics.<\/p>\n<h3>Extrinsic metrics<\/h3>\n<p>Extrinsic metrics are characterized by requirements of some kind of ground truth labeling, even if it is used for an unsupervised method. This may seem counter-intuitive at first as we, by clustering definition, do not use such ground truth labeling. However, most clustering algorithms are still developed on datasets that have labels available so these metrics use this fact as an advantage.<\/p>\n<div class=\"takeaways card-glow p-4 my-4\"><h3 class=\"w-100 d-block\">Takeaways<\/h3>\ud83d\udca1 NOTE: The core difference between extrinsic clustering metrics and classification metrics is that clustering metrics still allow for a different number of clusters in the ground truth labeling vs. the predicted labeling. <\/div>\n<p>In total, 8 of the 11 new clustering metrics fall into this category:<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2058\">Adjusted Mutual Information Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2032\">Adjusted Rand Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2053\">Completeness Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2053\">Homogeneity Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2008\">Mutual Information Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2029\">Normalized Mutual Information Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2025\">Rand Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2053\">V-Measure Score<\/a><\/strong><\/li>\n<\/ul>\n<p>The common signature for all these metrics is <code>preds<\/code>, and <code>target<\/code>. Both inputs are 1D tensors with predicted and target cluster labels. An example using the rand score can be seen below:<\/p>\n<pre class=\"code-shortcode light-theme window- collapse-false \" style=\"--height:falsepx\"><code class=\"language-python \">from torchmetrics.clustering import RandScore<br \/>\nimport torch\n\npreds = torch.tensor([2, 1, 0, 1, 0])<br \/>\ntarget = torch.tensor([0, 2, 1, 1, 0])<br \/>\nmetric = RandScore()<br \/>\nprint(metric(preds, target)) # tensor(0.6)<\/code><div class=\"copy-button\"><button class=\"expand-button\">Expand<\/button><button class=\"copy\">Copy<\/button><\/div><\/pre>\n<h3>Intrinsic metrics<\/h3>\n<p>In contrast, intrinsic metrics do not need any ground truth information. These metrics estimate inter-cluster consistency (cohesion of all points assigned to a single set) compared to other clusters (separation). This is often done by comparing the distance in the embedding space.<\/p>\n<p>There are three these metrics in the new Torchmetrics release:<\/p>\n<ul>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2036\">Calinski Harabasz Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2071\">Davies Bouldin Score<\/a><\/strong><\/li>\n<li><strong><a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\/pull\/2049\">Dunn Index<\/a><\/strong><\/li>\n<\/ul>\n<p>Common for all these metrics is that they take two inputs: <code>data<\/code> and <code>labels<\/code>. The <code>data<\/code> is a <code>(N,d)<\/code> matrix containing a <code>d<\/code>-dimensional embedding per datapoint, and <code>labels<\/code> are <code>(N,)<\/code> shaped vectors containing predicted labels.<\/p>\n<pre class=\"code-shortcode light-theme window- collapse-false \" style=\"--height:falsepx\"><code class=\"language-python \">from torchmetrics.clustering import DunnIndex<br \/>\nimport torch\n\ndata = torch.tensor([[0, 0], [0.5, 0], [1, 0], [0.5, 1]])<br \/>\nlabels = torch.tensor([0, 0, 0, 1])<br \/>\ndunn_index = DunnIndex(p=2)<br \/>\nprint(dunn_index(data, labels)) # tensor(2.0)<\/code><div class=\"copy-button\"><button class=\"expand-button\">Expand<\/button><button class=\"copy\">Copy<\/button><\/div><\/pre>\n<h1>Update to Mean Average Precision<\/h1>\n<p><code>MeanAveragePrecision<\/code>, the most widely used metric for object detection in computer vision, now supports two new arguments: <code>average<\/code> and <code>backend<\/code>.<\/p>\n<p>The <code>average<\/code> argument controls how averaging is done over multiple classes. By the core definition, the default way to do so is <code>macro<\/code> averaging where the metric is calculated for each class separately and then averaged together. This will continue to be the default in Torchmetrics, but now we also support the setting <code>average=\"micro\"<\/code> . Every object under this setting is essentially considered to be the same class, and the returned value is therefore calculated simultaneously over all objects.<\/p>\n<p>The second argument <code>backend<\/code> is important, as it indicates what computational backend will be used for the internal computations. Since <code>MeanAveragePrecision<\/code> is not a simple metric to compute, and we value the correctness of our metric, we rely on some third-party library to do the internal computations. By default, we rely on users to have the official <a href=\"https:\/\/github.com\/cocodataset\/cocoapi\/tree\/master\/PythonAPI\/pycocotools\">pycocotools<\/a> installed, but with the new argument, we will also be supporting other backends.<\/p>\n<p>To begin with, we will be supporting the <a href=\"https:\/\/pypi.org\/project\/faster-coco-eval\/\">faster-coco-eval<\/a> which is both faster than the original official implementation but also fixes some corner cases. In the future we hope to support more backends, in particular a pure PyTorch based implementation.<\/p>\n<h2>Other Bugfixes<\/h2>\n<p>Since Torchmetrics v1.1, there have been two small bugfix releases v1.1.1 and v1.1.2.<\/p>\n<ul>\n<li><code>MetricCollection<\/code> has been fixed for cases where the collection contained multiple metrics that returned dictionaries that contained the same keyword. Before v1.2, this was not correctly identified, an only the results of the last metric were returned. This has been fixed in v1.2 such that keywords are now appended a prefix if duplicates exist.<\/li>\n<li>The <code>higher_is_better<\/code> and <code>is_differentiable<\/code> attributes that all metrics (should) have, for respectively determining if a metric is optimal when minimized or maximized and if it is differentiable, have now been added to metrics that were missing the attributes or, in some cases, they where incorrectly set.<\/li>\n<li><code>BootStrapper<\/code> from wrappers, <code>PearsonCorrCoef<\/code> from regression, and <code>RecallAtFixedPrecision<\/code>from classification have all gotten small bugfixes.<\/li>\n<\/ul>\n<p>We always recommend upgrading to the latest Torchmetrics release. Please refer to our <a href=\"https:\/\/torchmetrics.readthedocs.io\/en\/stable\/generated\/CHANGELOG.html\">changelog<\/a> for the full overview of newly added features, changes, deprecations, and bug fixes.<\/p>\n<h2>Thank you!<\/h2>\n<p>As always, we offer a big thank you to all of our community members for their contributions and feedback. <strong>Please open an issue in the repo if you have any recommendations for the next metrics we should tackle.<\/strong><\/p>\n<p>We are happy to see the continued adoption of TorchMetrics in over 2,400 projects, and we are proud to release that we have passed 1,600 GitHub stars.<\/p>\n<p>If you want to ask a question or join us in expanding Torchmetrics, please join our <a href=\"https:\/\/discord.com\/invite\/XncpTy7DSt\">discord server<\/a>, where you can ask questions and get guidance in the <code>#torchmetrics<\/code> channel.<\/p>\n<p>\ud83d\udd25 Check out the <a href=\"https:\/\/torchmetrics.readthedocs.io\/en\/stable\/\">documentation<\/a> and <a href=\"https:\/\/github.com\/Lightning-AI\/torchmetrics\">code<\/a>! \ud83d\ude80<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Torchmetrics v1.2 is out now! The latest release includes 11 new metrics within a new subdomain: Clustering. In this blog post, we briefly explain what clustering is, why it\u2019s a useful measure, and newly added metrics that can be used with code samples. Clustering: What is it? Clustering is an unsupervised learning technique. The term<a class=\"excerpt-read-more\" href=\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\" title=\"ReadTorchmetrics v1.2\">&#8230; Read more &raquo;<\/a><\/p>\n","protected":false},"author":39,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[101],"tags":[96,188,237],"glossary":[],"acf":{"additional_authors":false,"hide_from_archive":false,"content_type":"Blog Post","sticky":false,"custom_scripts":"","custom_styles":"","tabs":false,"mathjax":false,"default_editor":true,"show_table_of_contents":false,"code_embed":false},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Torchmetrics v1.2 - Lightning AI<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Torchmetrics v1.2 - Lightning AI\" \/>\n<meta property=\"og:description\" content=\"Torchmetrics v1.2 is out now! The latest release includes 11 new metrics within a new subdomain: Clustering. In this blog post, we briefly explain what clustering is, why it\u2019s a useful measure, and newly added metrics that can be used with code samples. Clustering: What is it? Clustering is an unsupervised learning technique. The term... Read more &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\" \/>\n<meta property=\"og:site_name\" content=\"Lightning AI\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-22T14:16:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-27T10:14:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png\" \/>\n<meta name=\"author\" content=\"Lightning.ai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LightningAI\" \/>\n<meta name=\"twitter:site\" content=\"@LightningAI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Lightning.ai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\"},\"author\":{\"name\":\"Lightning.ai\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/d53c9386be275d278c59022570c0d859\"},\"headline\":\"Torchmetrics v1.2\",\"datePublished\":\"2023-09-22T14:16:47+00:00\",\"dateModified\":\"2023-09-27T10:14:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\"},\"wordCount\":1025,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png\",\"keywords\":[\"ai\",\"LLMs\",\"torchmetrics\"],\"articleSection\":[\"Announcements\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\",\"url\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\",\"name\":\"Torchmetrics v1.2 - Lightning AI\",\"isPartOf\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png\",\"datePublished\":\"2023-09-22T14:16:47+00:00\",\"dateModified\":\"2023-09-27T10:14:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage\",\"url\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png\",\"contentUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lightning.ai\/pages\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Torchmetrics v1.2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lightning.ai\/pages\/#website\",\"url\":\"https:\/\/lightning.ai\/pages\/\",\"name\":\"Lightning AI\",\"description\":\"The platform for teams to build AI.\",\"publisher\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lightning.ai\/pages\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lightning.ai\/pages\/#organization\",\"name\":\"Lightning AI\",\"url\":\"https:\/\/lightning.ai\/pages\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png\",\"contentUrl\":\"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png\",\"width\":1744,\"height\":856,\"caption\":\"Lightning AI\"},\"image\":{\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/LightningAI\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/d53c9386be275d278c59022570c0d859\",\"name\":\"Lightning.ai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lightning.ai\/pages\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b75fef9be69cb600f385dfba5525cf77?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b75fef9be69cb600f385dfba5525cf77?s=96&d=mm&r=g\",\"caption\":\"Lightning.ai\"},\"url\":\"https:\/\/lightning.ai\/pages\/author\/lightning-ai\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Torchmetrics v1.2 - Lightning AI","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/","og_locale":"en_US","og_type":"article","og_title":"Torchmetrics v1.2 - Lightning AI","og_description":"Torchmetrics v1.2 is out now! The latest release includes 11 new metrics within a new subdomain: Clustering. In this blog post, we briefly explain what clustering is, why it\u2019s a useful measure, and newly added metrics that can be used with code samples. Clustering: What is it? Clustering is an unsupervised learning technique. The term... Read more &raquo;","og_url":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/","og_site_name":"Lightning AI","article_published_time":"2023-09-22T14:16:47+00:00","article_modified_time":"2023-09-27T10:14:57+00:00","og_image":[{"url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png","type":"","width":"","height":""}],"author":"Lightning.ai","twitter_card":"summary_large_image","twitter_creator":"@LightningAI","twitter_site":"@LightningAI","twitter_misc":{"Written by":"Lightning.ai","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#article","isPartOf":{"@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/"},"author":{"name":"Lightning.ai","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/d53c9386be275d278c59022570c0d859"},"headline":"Torchmetrics v1.2","datePublished":"2023-09-22T14:16:47+00:00","dateModified":"2023-09-27T10:14:57+00:00","mainEntityOfPage":{"@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/"},"wordCount":1025,"commentCount":0,"publisher":{"@id":"https:\/\/lightning.ai\/pages\/#organization"},"image":{"@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage"},"thumbnailUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png","keywords":["ai","LLMs","torchmetrics"],"articleSection":["Announcements"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/","url":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/","name":"Torchmetrics v1.2 - Lightning AI","isPartOf":{"@id":"https:\/\/lightning.ai\/pages\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage"},"image":{"@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage"},"thumbnailUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png","datePublished":"2023-09-22T14:16:47+00:00","dateModified":"2023-09-27T10:14:57+00:00","breadcrumb":{"@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#primaryimage","url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png","contentUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/09\/torchmetrics-1.2-300x139.png"},{"@type":"BreadcrumbList","@id":"https:\/\/lightning.ai\/pages\/community\/announcements\/torchmetrics-v1.2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lightning.ai\/pages\/"},{"@type":"ListItem","position":2,"name":"Torchmetrics v1.2"}]},{"@type":"WebSite","@id":"https:\/\/lightning.ai\/pages\/#website","url":"https:\/\/lightning.ai\/pages\/","name":"Lightning AI","description":"The platform for teams to build AI.","publisher":{"@id":"https:\/\/lightning.ai\/pages\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lightning.ai\/pages\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lightning.ai\/pages\/#organization","name":"Lightning AI","url":"https:\/\/lightning.ai\/pages\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/","url":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png","contentUrl":"https:\/\/lightningaidev.wpengine.com\/wp-content\/uploads\/2023\/02\/image-17.png","width":1744,"height":856,"caption":"Lightning AI"},"image":{"@id":"https:\/\/lightning.ai\/pages\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/LightningAI"]},{"@type":"Person","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/d53c9386be275d278c59022570c0d859","name":"Lightning.ai","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lightning.ai\/pages\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b75fef9be69cb600f385dfba5525cf77?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b75fef9be69cb600f385dfba5525cf77?s=96&d=mm&r=g","caption":"Lightning.ai"},"url":"https:\/\/lightning.ai\/pages\/author\/lightning-ai\/"}]}},"_links":{"self":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts\/5648976"}],"collection":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/users\/39"}],"replies":[{"embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/comments?post=5648976"}],"version-history":[{"count":0,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/posts\/5648976\/revisions"}],"wp:attachment":[{"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/media?parent=5648976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/categories?post=5648976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/tags?post=5648976"},{"taxonomy":"glossary","embeddable":true,"href":"https:\/\/lightning.ai\/pages\/wp-json\/wp\/v2\/glossary?post=5648976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}