JATICClassificationAugmentation

class nrtk.interop.maite.interop.image_classification.augmentation.JATICClassificationAugmentation(augment: PerturbImage, augment_id: str)

Implementation of JATIC Augmentation for NRTK perturbers.

Implementation of JATIC Augmentation for NRTK perturbers operating on a MAITE-protocol compliant Image Classification dataset.

Parameters

augmentPerturbImage

Augmentations to apply to an image.

name: Optional[str]

Name of the augmentation. Will appear in metadata key.

Methods

__call__(batch: tuple[Sequence[ArrayLike], Sequence[ArrayLike], Sequence[DatumMetadata]]) tuple[Sequence[ArrayLike], Sequence[ArrayLike], Sequence[NRTKDatumMetadata]]

Apply augmentations to the given data batch.

__init__(augment: PerturbImage, augment_id: str) None

Initialize augmentation wrapper

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).