TorchMetrics
Metrics for tensor-based learning systems, useful for testing reductions, state accumulation and distributed aggregation.
External resource. No execution or independent verification is claimed here.
Does a selected classification metric match a hand-built confusion matrix across uneven batch partitions?
Enumerate labels and predictions, declare averaging and zero-division conventions, and compare per-class and aggregate results.
What you could produce
- A version-pinned protocol stating inputs, rights, expected behavior, tolerances and resource limits before execution.
- A retained per-case result and failure ledger with an independently controlled comparison, if qualified execution is later authorized.
Before you use it
- Python and PyTorch dependencies; selected metrics can add modality-specific packages or model downloads requiring review.
- A separately qualified isolated runtime with a reviewed, pinned dependency and input closure.
Limits to keep in view
- No source program, example, build hook, package, dataset, model or generated research code has been executed or downloaded as a payload.
- The documented self-contained Python 3.13, 90-second pilot does not establish support for this package, its compiled dependencies, GPUs, services or agent sandboxes.
- Installation success, scientific outcomes, runtime compatibility, latency, memory use, API costs and security properties are unmeasured.
Source and permission context
Preserve the upstream project name, repository, exact source commit and applicable contributor/notices; resolve upstream citation guidance for any later formal use.
Catalog listing reviewed. This review covers the description and source links displayed here.
Approved for catalog metadata and links. The displayed entry identifies TorchMetrics with the concise collection-authored summary “Metrics for tensor-based learning systems, useful for testing reductions, state accumulation and distributed aggregation.” and points to the public upstream repository https://github.com/Lightning-AI/torchmetrics. The wording describes function and possible investigation without reproducing upstream source or documentation, claiming execution, or implying endorsement or rights beyond the recorded scopes.
Reviewed 2026-09-14. Copying or adapting source files remains subject to their own terms.
code · Apache-2.0
Apache License version 2.0 is identified in the pinned root license text. Observation is limited to LICENSE at commit 40f1c22cac277b90dbe0f78a33a86d80656d0715; this is not blanket artifact clearance.
Inspect the license evidence ↗Before copying source material
- Only the cited license and README texts were observed; file exceptions, dependency closure, vendored components and submodules are not comprehensively audited.
- Dataset files, task prompts, generated outputs, model weights, tokenizer assets and hosted APIs are not cleared by a root code license.
- README/documentation reuse rights and version-specific citation guidance remain separately unresolved; only links and original descriptions are retained.