tfmri.losses

Keras losses.

Classes

ConfusionLoss

Abstract base class for losses derived from the confusion matrix.

F1Loss

F1 loss function (aka Dice loss).

FocalTverskyLoss

Focal Tversky loss function.

IoULoss

IoU loss function (aka Jaccard loss).

SSIMLoss

Computes the structural similarity (SSIM) loss.

SSIMMultiscaleLoss

Computes the multiscale structural similarity (MS-SSIM) loss.

TverskyLoss

Tversky loss function.

Functions

ssim_loss

Computes the structural similarity (SSIM) loss.

ssim_multiscale_loss

Computes the multiscale structural similarity (MS-SSIM) loss.