How TorchMetrics is used
TorchMetrics is a dependency in 4 of the 6,211 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,980); counting those, it appears in 32 projects, and what it is used with below comes from all of them. Projects that use it most often also use NumPy (96.9%), scikit-learn (93.8%), PyTorch (90.6%).
TorchMetrics popularity over time
Gid Score 48: downloads 73, use in agent projects 34, GitHub stars 27, downloads trend 51 (each 0-100). How it is calculated.
Often used with TorchMetrics
| NumPy | 96.9% of TorchMetrics projects · 16.6× more than average |
|---|---|
| scikit-learn | 93.8% of TorchMetrics projects · 43.8× more than average |
| PyTorch | 90.6% of TorchMetrics projects · 59.9× more than average |
| tqdm | 90.6% of TorchMetrics projects · 51.6× more than average |
| Matplotlib | 84.4% of TorchMetrics projects · 31.4× more than average |
| pandas | 84.4% of TorchMetrics projects · 19.6× more than average |
| PyYAML | 81.2% of TorchMetrics projects · 13.7× more than average |
| SciPy | 81.2% of TorchMetrics projects · 44.7× more than average |
From all 32 projects in our scan that use TorchMetrics, including the dependency samples.
Install
| Package | pip install torchmetrics |
|---|---|
| Main stacks | Python (32) |
| Example projects | YvanYin/GoalFlow, jaidevshriram/realmdreamer, wandb/llm-leaderboard, microsoft/MOFDiff, paulhager/MIMIC-Clinical-Decision-Making-Analysis |
Alternatives to TorchMetrics
In our scan, none of the most used tools in ML and data science does the same job as TorchMetrics: they are add-ons, companions or tools for a different task.
More in ML and data science: NumPy pandas scikit-learn SciPy PyTorch Sentence Transformers Hugging Face Transformers NetworkX