pub struct ValidationMiddleware {
pub validate_completeness: bool,
pub validate_ranges: bool,
pub expected_ranges: Option<HashMap<usize, (f64, f64)>>,
}Expand description
Validation middleware
Fields§
§validate_completeness: boolvalidate_completeness
validate_ranges: boolvalidate_ranges
expected_ranges: Option<HashMap<usize, (f64, f64)>>expected_ranges
Trait Implementations§
Source§impl ImputationMiddleware for ValidationMiddleware
impl ImputationMiddleware for ValidationMiddleware
Source§fn after_imputation(
&self,
X: &ArrayView2<'_, Float>,
) -> SklResult<Array2<Float>>
fn after_imputation( &self, X: &ArrayView2<'_, Float>, ) -> SklResult<Array2<Float>>
Process data after imputation
Source§fn before_imputation(
&self,
X: &ArrayView2<'_, Float>,
) -> SklResult<Array2<Float>>
fn before_imputation( &self, X: &ArrayView2<'_, Float>, ) -> SklResult<Array2<Float>>
Process data before imputation
Auto Trait Implementations§
impl Freeze for ValidationMiddleware
impl RefUnwindSafe for ValidationMiddleware
impl Send for ValidationMiddleware
impl Sync for ValidationMiddleware
impl Unpin for ValidationMiddleware
impl UnwindSafe for ValidationMiddleware
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