meddlr.metrics#
Meddlr metrics extend the torchmetrics interface to support tracking and reporting metrics on a per-example, per-channel basis. This can be useful for more nuanced model monitoring, such as determining which set of examples is the model underperforming on or which categories have the least accuracy.
Because these metrics are based on the torchmetrics interface, they are compatible everywhere where torchmetrics metrics are used.
Base#
Interface for new metrics. |
|
The class that manages multiple metrics. |
Image Metrics#
Mean squared error with complex-valued support. |
|
Normalized root-mean-squared error with complex-valued support. |
|
Peak signal-to-noise ratio with complex-valued support. |
|
Root-mean-squared error with complex-valued support. |
|
Structural similarity index measure with complex-valued support. |
Segmentation Metrics#
Average symmetric surface distance. |
|
Coefficient of variation. |
|
Dice score coefficient. |
|
Volumetric overlap error. |
Functional#
All metrics in Meddlr are also available as functions in the meddlr.metrics.functional module.
Computes mean square error. |
|
Computes normalized root mean squared error. |
|
Computes peak signal-to-noise ratio. |
|
Computes root mean square error. |
|
Computes structural similarity index (SSIM). |
|
Computes average symmetric surface distance. |
|
Computes coefficient of variation. |
|
Computes dice score coefficient. |
|
Computes volumetric overlap error. |