{"library":"torchmetrics","type":"library","category":null,"description":"TorchMetrics is a comprehensive collection of PyTorch native metrics for evaluating machine learning models, offering over 100 common and specialized metrics implemented directly in PyTorch. Developed and maintained by Lightning AI, it provides a standardized, rigorously tested, and distributed-training compatible API for metric computation, reducing boilerplate and ensuring reproducibility. It automatically accumulates over batches and synchronizes between multiple devices. The library is currently at version 1.9.0 and maintains a regular release cadence with several patch and minor releases per year.","language":"python","status":"active","version":"1.9.0","tags":["machine learning","pytorch","metrics","deep learning","evaluation"],"install":[{"cmd":"pip install torchmetrics","imports":["from torchmetrics import Accuracy","from torchmetrics.functional import accuracy","from torchmetrics import MetricCollection","from torchmetrics import Metric"]}],"homepage":"https://torchmetrics.readthedocs.io","github":"https://github.com/Lightning-AI/torchmetrics","docs":"https://torchmetrics.rtfd.io/en/latest/","changelog":null,"pypi":"https://pypi.org/project/torchmetrics/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":20,"avg_install_s":69,"avg_import_s":6.41,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/torchmetrics/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":"stale"}}