pub struct ValidationHook;Expand description
Validation hook that checks for NaN and Inf
Trait Implementations§
Source§impl Hook for ValidationHook
impl Hook for ValidationHook
Source§fn after_transform(
&mut self,
_x: &Array2<f64>,
output: &Array2<f64>,
_context: &mut HookContext,
) -> Result<(), SklearsError>
fn after_transform( &mut self, _x: &Array2<f64>, output: &Array2<f64>, _context: &mut HookContext, ) -> Result<(), SklearsError>
Called after transform
Source§fn before_fit(
&mut self,
x: &Array2<f64>,
context: &mut HookContext,
) -> Result<(), SklearsError>
fn before_fit( &mut self, x: &Array2<f64>, context: &mut HookContext, ) -> Result<(), SklearsError>
Called before fit
Source§fn after_fit(
&mut self,
x: &Array2<f64>,
context: &mut HookContext,
) -> Result<(), SklearsError>
fn after_fit( &mut self, x: &Array2<f64>, context: &mut HookContext, ) -> Result<(), SklearsError>
Called after fit
Source§fn before_transform(
&mut self,
x: &Array2<f64>,
context: &mut HookContext,
) -> Result<(), SklearsError>
fn before_transform( &mut self, x: &Array2<f64>, context: &mut HookContext, ) -> Result<(), SklearsError>
Called before transform
Source§fn on_error(&mut self, error: &SklearsError, context: &mut HookContext)
fn on_error(&mut self, error: &SklearsError, context: &mut HookContext)
Called on error
Auto Trait Implementations§
impl Freeze for ValidationHook
impl RefUnwindSafe for ValidationHook
impl Send for ValidationHook
impl Sync for ValidationHook
impl Unpin for ValidationHook
impl UnwindSafe for ValidationHook
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