anomalib.utils.metrics.auroc

Implementation of AUROC metric based on TorchMetrics.

Module Contents

Classes

AUROC

Area under the ROC curve.

class anomalib.utils.metrics.auroc.AUROC[source]

Bases: torchmetrics.ROC

Area under the ROC curve.

compute(self) torch.Tensor[source]

First compute ROC curve, then compute area under the curve.

Returns

Value of the AUROC metric