anomalib.utils.metrics.collection

Anomalib Metric Collection.

Module Contents

Classes

AnomalibMetricCollection

Extends the MetricCollection class for use in the Anomalib pipeline.

class anomalib.utils.metrics.collection.AnomalibMetricCollection(*args, **kwargs)[source]

Bases: torchmetrics.MetricCollection

Extends the MetricCollection class for use in the Anomalib pipeline.

set_threshold(threshold_value)[source]

Update the threshold value for all metrics that have the threshold attribute.

update(*args, **kwargs) None[source]

Add data to the metrics.

property update_called bool[source]

Returns a boolean indicating if the update method has been called at least once.

property threshold float[source]

Return the value of the anomaly threshold.