pub struct AttackConfig {
pub attack_type: AttackType,
pub epsilon: f32,
pub num_iterations: usize,
pub step_size: f32,
pub random_init: bool,
}Expand description
Adversarial attack configuration
Fields§
§attack_type: AttackTypeAttack type
epsilon: f32Perturbation budget (epsilon)
num_iterations: usizeNumber of attack iterations
step_size: f32Step size for iterative attacks
random_init: boolRandom initialization
Trait Implementations§
Source§impl Clone for AttackConfig
impl Clone for AttackConfig
Source§fn clone(&self) -> AttackConfig
fn clone(&self) -> AttackConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttackConfig
impl Debug for AttackConfig
Auto Trait Implementations§
impl Freeze for AttackConfig
impl RefUnwindSafe for AttackConfig
impl Send for AttackConfig
impl Sync for AttackConfig
impl Unpin for AttackConfig
impl UnwindSafe for AttackConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more