Closed SkafteNicki closed 1 year ago
This issue has been automatically marked as stale because it hasn't had any recent activity. This issue will be closed in 7 days if no further activity occurs. Thank you for your contributions, Pytorch Lightning Team!
Setting this to "future" for now as it might not make the 1.7 release
🚀 Feature
Add native support in
self.log
for theMetricCollection
object from Torchmetrics: https://torchmetrics.readthedocs.io/en/latest/pages/overview.html#metriccollectionMotivation
The
MetricCollection
object is used to chain together multiple metrics into a single object that can be update at once:however, when one want to log such an object in PL it is often done on the individual metric:
However, this actually does not work with the
compute_group
feature that we implemented in v0.8 for faster computation of metrics that share the same computations.This issue proposed that PL natively supports
MetricCollection
in the same way thatMetric
is support inself.log
.Pitch
Alternatives
Additional context
Already discussed on slack with @Borda and @justusschock
If you enjoy Lightning, check out our other projects! âš¡
Metrics: Machine learning metrics for distributed, scalable PyTorch applications.
Lite: enables pure PyTorch users to scale their existing code on any kind of device while retaining full control over their own loops and optimization logic.
Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, fine-tuning, and solving problems with deep learning.
Bolts: Pretrained SOTA Deep Learning models, callbacks, and more for research and production with PyTorch Lightning and PyTorch.
Lightning Transformers: Flexible interface for high-performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.
cc @borda @carmocca @edward-io @ananthsub @rohitgr7 @kamil-kaczmarek @Raalsky @Blaizzy @akihironitta