Metrics#
ATOMMIC provides a number of metrics for each task to evaluate the performance of the models. The metrics are
implemented as classes that can be instantiated and called with the desired inputs. Depending on the chosen task, the
corresponding metrics will be also logged on the selected logger.
In tools, you can find scripts that allows you to evaluate the performance of a model on a dataset. The scripts take as input the ground truth and the predictions of the model and compute the metrics for each task.
The metrics are implemented in the following modules:
mse():Mean Squared Error (MSE) metric for
reconstruction,quantitative, andmultitasktasks.
nmse():Normalized Mean Squared Error (NMSE) metric for
reconstruction,quantitative, andmultitasktasks.
psnr():Peak Signal-to-Noise Ratio (PSNR) metric for
reconstruction,quantitative, andmultitasktasks.
ssim():Structural Similarity Index (SSIM) metric for
reconstruction,quantitative, andmultitasktasks.
ReconstructionMetrics:Class that wraps all the metrics for
reconstruction,quantitative, andmultitasktasks.
asd():Average Surface Distance (ASD) metric for
segmentationandmultitasktasks.
binary_cross_entropy_with_logits_metric():Binary Cross Entropy with Logits (BCE) metric for
segmentationandmultitasktasks.
dice_metric():Dice metric for
segmentationandmultitasktasks.
f1_per_class_metric():F1 per class metric for
segmentationandmultitasktasks.
hausdorff_distance_metric():Hausdorff Distance (HD) metric for
segmentationandmultitasktasks.
hausdorff_distance_95_metric():95th percentile of the Hausdorff Distance (HD95) metric for
segmentationandmultitasktasks.
iou_metric():Intersection over Union (IoU) metric for
segmentationandmultitasktasks.
precision_metric():Precision metric for
segmentationandmultitasktasks.
recall_metric():Recall metric for
segmentationandmultitasktasks.
surface_distances():Surface Distances (SD) metric for
segmentationandmultitasktasks.
SegmentationMetrics:Class that wraps all the metrics for
segmentationandmultitasktasks.