← Python API
vraven.decompiler · class

AttackResult

AttackResult(attack_name: 'str', attack_family: 'str', succeeded: 'bool', epsilon: 'float', steps: 'int', prediction_flipped: 'bool', perturbation_norm_l2: 'float', perturbation_norm_linf: 'float', original_margin: 'float', adversarial_margin: 'float', margin_delta: 'float', original_prediction: 'int', adversarial_prediction: 'int', vulnerable_concepts: 'list[str]' = <factory>, norm: 'str' = 'linf', mechanism_survival: 'float | None' = None, mechanism_delta_l1: 'float | None' = None, mechanism_delta_linf: 'float | None' = None, mechanism_suppressed: 'list[str]' = <factory>, mechanism_activated: 'list[str]' = <factory>, first_mechanism_divergence: 'str | None' = None, objective: 'str' = 'untargeted_negative_logit', mechanism_cosine_survival: 'float | None' = None, mechanism_energy_survival: 'float | None' = None, mechanism_top_active_cosine_survival: 'float | None' = None, mechanism_worst_layer_cosine_survival: 'float | None' = None, mechanism_worst_layer: 'str | None' = None) -> None

One measured attack trial (Layer 1 stress + optional Layer 2 ΔM).

Usage

from vraven.decompiler import AttackResult

value = AttackResult(...)
Source of truthThis page is generated from the checked-out public symbol, signature, and docstring. Pin the package version for reproducible work.