cli.shared.types.attack.attacks package


cli.shared.types.attack.attacks.cw module

class cli.shared.types.attack.attacks.cw.CwAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: TargetedAttackCLIConfigType[CWAttackConfig])

Bases: BaseAttackCLIConfigType

This dataclass is used to store the configuration of the CW attack CLI.

attack_config: TargetedAttackCLIConfigType[CWAttackConfig]

cli.shared.types.attack.attacks.decision_boundary module

class cli.shared.types.attack.attacks.decision_boundary.DecisionBoundaryAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: TargetedAttackCLIConfigType[DecisionBoundaryAttackConfig])

Bases: BaseAttackCLIConfigType

This dataclass is used to store the configuration of the DecisionBoundary attack CLI.

attack_config: TargetedAttackCLIConfigType[DecisionBoundaryAttackConfig]

cli.shared.types.attack.attacks.deepfool module

class cli.shared.types.attack.attacks.deepfool.DeepFoolAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: AttackCLIConfigType[DeepFoolAttackConfig])

Bases: BaseAttackCLIConfigType

This dataclass is used to store the configuration of the DeepFool attack CLI.

attack_config: AttackCLIConfigType[DeepFoolAttackConfig]

cli.shared.types.attack.attacks.fgsm module

class cli.shared.types.attack.attacks.fgsm.FgsmAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: TargetedAttackCLIConfigType[FgsmAttackConfig])

Bases: BaseAttackCLIConfigType

This dataclass is used to store the configuration of the FGSM attack CLI.

attack_config: TargetedAttackCLIConfigType[FgsmAttackConfig]

cli.shared.types.attack.attacks.lots module

class cli.shared.types.attack.attacks.lots.LotsAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: TargetedAttackCLIConfigType[LotsAttackConfig])

Bases: BaseAttackCLIConfigType

This class is used as a type hint for the LOTS attack CLI configuration.

attack_config: TargetedAttackCLIConfigType[LotsAttackConfig]

cli.shared.types.attack.attacks.pgd module

class cli.shared.types.attack.attacks.pgd.PgdAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: TargetedAttackCLIConfigType[PgdAttackConfig])

Bases: BaseAttackCLIConfigType

This dataclass is used to store the configuration of the PGD attack CLI.

attack_config: TargetedAttackCLIConfigType[PgdAttackConfig]