pub struct RobustnessTester {
pub test_noise_robustness: bool,
pub test_missing_data_robustness: bool,
pub test_adversarial_robustness: bool,
pub test_distribution_shift: bool,
pub noise_levels: Vec<f64>,
pub missing_ratios: Vec<f64>,
pub n_robustness_tests: usize,
}Expand description
Robustness testing framework
Fields§
§test_noise_robustness: boolTest with noisy data
test_missing_data_robustness: boolTest with missing data
test_adversarial_robustness: boolTest with adversarial examples
test_distribution_shift: boolTest with distribution shift
noise_levels: Vec<f64>Noise levels to test
missing_ratios: Vec<f64>Missing data ratios to test
n_robustness_tests: usizeNumber of robustness test iterations
Implementations§
Source§impl RobustnessTester
impl RobustnessTester
pub fn comprehensive() -> Self
pub fn disabled() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RobustnessTester
impl RefUnwindSafe for RobustnessTester
impl Send for RobustnessTester
impl Sync for RobustnessTester
impl Unpin for RobustnessTester
impl UnwindSafe for RobustnessTester
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> 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