pub struct OODValidator { /* private fields */ }Expand description
Out-of-Distribution Validator
Implementations§
Source§impl OODValidator
impl OODValidator
Sourcepub fn with_config(config: OODValidationConfig) -> Self
pub fn with_config(config: OODValidationConfig) -> Self
Create a new OOD validator with custom configuration
Sourcepub fn detection_method(self, method: OODDetectionMethod) -> Self
pub fn detection_method(self, method: OODDetectionMethod) -> Self
Set the detection method
Sourcepub fn validation_split(self, split: Float) -> Self
pub fn validation_split(self, split: Float) -> Self
Set the validation split ratio
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set the random state for reproducibility
Sourcepub fn min_ood_samples(self, min_samples: usize) -> Self
pub fn min_ood_samples(self, min_samples: usize) -> Self
Set the minimum number of OOD samples required
Sourcepub fn confidence_level(self, level: Float) -> Self
pub fn confidence_level(self, level: Float) -> Self
Set the confidence level for statistical tests
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OODValidator
impl RefUnwindSafe for OODValidator
impl Send for OODValidator
impl Sync for OODValidator
impl Unpin for OODValidator
impl UnwindSafe for OODValidator
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