advsecurenet.shared.types package



advsecurenet.shared.types.attacks module

class advsecurenet.shared.types.attacks.AttackType(value)

Bases: Enum

This Enum class is used to store the types of attacks.

CW = <class 'advsecurenet.attacks.gradient_based.cw.CWAttack'>
DECISION_BOUNDARY = <class 'advsecurenet.attacks.decision_based.boundary.DecisionBoundary'>
DEEPFOOL = <class 'advsecurenet.attacks.gradient_based.deepfool.DeepFool'>
FGSM = <class 'advsecurenet.attacks.gradient_based.fgsm.FGSM'>
LOTS = <class 'advsecurenet.attacks.gradient_based.lots.LOTS'>
PGD = <class 'advsecurenet.attacks.gradient_based.pgd.PGD'>

advsecurenet.shared.types.dataset module

class advsecurenet.shared.types.dataset.DataType(value)

Bases: Enum

An enum class for the data types.

TEST = 'test'
TRAIN = 'train'
class advsecurenet.shared.types.dataset.DatasetType(value)

Bases: Enum

An enum class for the dataset types supported by the library. It is possible to use a custom dataset as well.

CIFAR10 = 'CIFAR10'
CIFAR100 = 'CIFAR100'
CUSTOM = 'CUSTOM'
FASHION_MNIST = 'FASHION_MNIST'
IMAGENET = 'IMAGENET'
MNIST = 'MNIST'
SVHN = 'SVHN'

advsecurenet.shared.types.model module

class advsecurenet.shared.types.model.ModelType(value)

Bases: Enum

Specifies the type of the model. Supported types are: - STANDARD: The model is a standard model from torchvision.models. - CUSTOM: The model is a custom model provided by the package that is not present in torchvision.models. These models can be used for research purposes. - EXTERNAL: The model is an external model that is not provided by the package. These models are loaded from external Python files.

CUSTOM = 'custom'
EXTERNAL = 'external'
STANDARD = 'standard'