pub struct ErrorBoundsValidator {
pub confidence_level: f64,
pub n_bootstrap_samples: usize,
pub bound_types: Vec<BoundType>,
}Expand description
Error bounds testing framework ErrorBoundsValidator
Fields§
§confidence_level: f64confidence_level
n_bootstrap_samples: usizen_bootstrap_samples
bound_types: Vec<BoundType>bound_types
Implementations§
Source§impl ErrorBoundsValidator
impl ErrorBoundsValidator
pub fn new() -> Self
pub fn confidence_level(self, level: f64) -> Self
pub fn n_bootstrap_samples(self, n_samples: usize) -> Self
pub fn bound_types(self, bounds: Vec<BoundType>) -> Self
pub fn validate_rff_bounds( &self, x: &Array2<f64>, gamma: f64, n_components: usize, ) -> Result<ErrorBoundsResult>
Trait Implementations§
Source§impl Clone for ErrorBoundsValidator
impl Clone for ErrorBoundsValidator
Source§fn clone(&self) -> ErrorBoundsValidator
fn clone(&self) -> ErrorBoundsValidator
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 ErrorBoundsValidator
impl Debug for ErrorBoundsValidator
Source§impl Default for ErrorBoundsValidator
impl Default for ErrorBoundsValidator
Source§impl<'de> Deserialize<'de> for ErrorBoundsValidator
impl<'de> Deserialize<'de> for ErrorBoundsValidator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorBoundsValidator
impl RefUnwindSafe for ErrorBoundsValidator
impl Send for ErrorBoundsValidator
impl Sync for ErrorBoundsValidator
impl Unpin for ErrorBoundsValidator
impl UnwindSafe for ErrorBoundsValidator
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