pub struct PerformanceHook { /* private fields */ }Expand description
Performance monitoring hook
Implementations§
Trait Implementations§
Source§impl Default for PerformanceHook
impl Default for PerformanceHook
Source§impl Hook for PerformanceHook
impl Hook for PerformanceHook
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 PerformanceHook
impl RefUnwindSafe for PerformanceHook
impl Send for PerformanceHook
impl Sync for PerformanceHook
impl Unpin for PerformanceHook
impl UnwindSafe for PerformanceHook
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