PyTorch Lightning: Metrics
www.pytorchlightning.ai › blog › pytorch-lightningAs already mentioned, these metrics (even the already implemented ones!) can also be used without anything else from PyTorch Lightning! Let’s have a look at this short example: import torch from pytorch_lightning. metrics. functional import accuracy # our mocked predictions - for real usage drop in your fancy method here!