pub struct LoggingHook { /* private fields */ }Expand description
Logging hook that records timing and shapes
Implementations§
Trait Implementations§
Source§impl Default for LoggingHook
impl Default for LoggingHook
Source§impl Hook for LoggingHook
impl Hook for LoggingHook
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 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 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 LoggingHook
impl RefUnwindSafe for LoggingHook
impl Send for LoggingHook
impl Sync for LoggingHook
impl Unpin for LoggingHook
impl UnwindSafe for LoggingHook
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