PGn and PBn

Contents

PGn and PBn#

class anomalib.metrics.PGn(fields=None, prefix='', strict=True, **kwargs)#

Bases: AnomalibMetric, _PGn

Wrapper to add AnomalibMetric functionality to PGn metric.

This class wraps the internal _PGn metric to make it compatible with Anomalib’s batch processing capabilities.

class anomalib.metrics.PBn(fields=None, prefix='', strict=True, **kwargs)#

Bases: AnomalibMetric, _PBn

Wrapper to add AnomalibMetric functionality to PBn metric.

This class wraps the internal _PBn metric to make it compatible with Anomalib’s batch processing capabilities.