TorchMetrics
JSON →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.
Traffic · last 30 days ↓50% vs prev 7d
When AI assistants answer questions about this library, they read this page. · indexed since Mon Apr 06
top countries 🇨🇦 Canada · 🇮🇳 India · 🇩🇪 Germany · 🇺🇸 United States