{"adoption": {"forks": 517, "observed_at": "2026-08-28T04:06:53.463606+00:00", "stars": 2461}, "canonical_url": "https://ross.abutalabs.com/products/torchmetrics", "card": {"archived": false, "artifact_type": "library", "description": "Machine learning metrics for distributed, scalable PyTorch applications.", "domain": ["machine-learning", "deep-learning", "data-science"], "enriched": true, "function": ["machine-learning", "benchmarking", "data-science"], "health_score": 97, "homepage": "https://lightning.ai/docs/torchmetrics/", "language": "Python", "license": "Apache-2.0", "license_family": "permissive", "maturity": "stable", "member_repos": ["Lightning-AI/torchmetrics"], "name": "Lightning-AI/torchmetrics", "platform": ["python"], "pushed_at": "2026-08-20T18:21:33+00:00", "repo": "Lightning-AI/torchmetrics", "stars": 2461, "tags": ["pytorch", "metrics", "distributed-computing", "model-evaluation"], "topics": ["python", "data-science", "machine-learning", "pytorch", "deep-learning", "metrics", "analyses"], "urls": [], "use_cases": ["compute accuracy, F1, and ROC-AUC during PyTorch training", "evaluate model metrics across distributed multi-GPU training", "implement a custom metric that accumulates batch statistics", "track validation metrics with PyTorch Lightning", "calculate image segmentation or object detection metrics", "evaluate retrieval and ranking quality for recommendation models"], "what_it_is": "TorchMetrics is a PyTorch-native library of machine learning metrics that work in distributed and scalable training pipelines. It provides 100+ built-in metrics (classification, regression, retrieval, multimodal, etc.) with a simple API for defining custom metrics.", "when_to_avoid": ["you work in TensorFlow, JAX, or scikit-learn ecosystems with their own metric tooling", "you need only simple numpy-based evaluation without PyTorch"], "when_to_choose": ["you train models in PyTorch or PyTorch Lightning and need reliable, well-tested metrics", "you need metrics that aggregate correctly across distributed workers", "you want a broad catalog of metrics with a consistent API"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/torchmetrics", "repo": "Lightning-AI/torchmetrics", "role": "main", "score": 90}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:53.463606+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:29:19.078313+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "81c92b8431d20385c6f964038ac87e7d8dbc0d80fdbf3a6feb6f86b9e59a3de9", "fetched_at": "2026-08-28T04:06:53.463606+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lightning-AI/torchmetrics"}, {"content_hash": "9c55a9440a9c6a67c7ec66dd7716c02096f560ef60d2e29ae5bc4b1ccc5e46f8", "fetched_at": "2026-08-29T10:11:15.333660+00:00", "kind": "homepage", "missing": false, "url": "https://lightning.ai/docs/torchmetrics/"}, {"content_hash": "3793ae269ad651674c036605a8d7cd36956c1dcabf92a568a5a37f261f6f5de7", "fetched_at": "2026-08-29T10:11:15.335894+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/torchmetrics/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 98, "longevity": 100, "rhythm": 74}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2080, "days_push": 13, "days_rel": 177, "gap_med": 18, "n_releases_24m": 18}, "score": 90, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}