cli.shared.types.attack package



cli.shared.types.attack.attack module

class cli.shared.types.attack.attack.AttackCLIConfigType(attack_parameters: T)

Bases: Generic[T]

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

attack_parameters: T
class cli.shared.types.attack.attack.AttackProcedureCliConfigType(verbose: bool | None = True, save_result_images: bool | None = False, result_images_dir: str | None = None, result_images_prefix: str | None = None)

Bases: object

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

result_images_dir: str | None = None
result_images_prefix: str | None = None
save_result_images: bool | None = False
verbose: bool | None = True
class cli.shared.types.attack.attack.AttackWithNameConfigDict(name: str, config: str)

Bases: object

This dataclass is used to store the configuration of an attack with its name.

config: str
name: str
class cli.shared.types.attack.attack.BaseAttackCLIConfigType(model: ModelCliConfigType, dataset: AttacksDatasetCliConfigType, dataloader: DataLoaderCliConfigType, device: DeviceConfig, attack_procedure: AttackProcedureCliConfigType, attack_config: AttackCLIConfigType)

Bases: object

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

attack_config: AttackCLIConfigType
attack_procedure: AttackProcedureCliConfigType
dataloader: DataLoaderCliConfigType
dataset: AttacksDatasetCliConfigType
device: DeviceConfig
model: ModelCliConfigType
class cli.shared.types.attack.attack.TargetedAttackCLIConfigType(attack_parameters: T, target_parameters: TargetCLIConfigType)

Bases: AttackCLIConfigType[T]

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

target_parameters: TargetCLIConfigType