pub struct AsyncProcessorTraining<ET, EV> { /* private fields */ }Expand description
Event processor for the training process.
Implementations§
Source§impl<ET: Send + 'static, EV: Send + 'static> AsyncProcessorTraining<ET, EV>
impl<ET: Send + 'static, EV: Send + 'static> AsyncProcessorTraining<ET, EV>
Sourcepub fn new<P: EventProcessorTraining<ET, EV> + 'static>(processor: P) -> Self
pub fn new<P: EventProcessorTraining<ET, EV> + 'static>(processor: P) -> Self
Create an event processor for training.
Trait Implementations§
Source§impl<ET: Send, EV: Send> EventProcessorTraining<ET, EV> for AsyncProcessorTraining<ET, EV>
impl<ET: Send, EV: Send> EventProcessorTraining<ET, EV> for AsyncProcessorTraining<ET, EV>
Source§fn process_train(&mut self, event: ET)
fn process_train(&mut self, event: ET)
Collect a training event.
Source§fn process_valid(&mut self, event: EV)
fn process_valid(&mut self, event: EV)
Collect a validation event.
Source§fn renderer(self) -> Box<dyn MetricsRenderer>
fn renderer(self) -> Box<dyn MetricsRenderer>
Returns the renderer used for training.
Auto Trait Implementations§
impl<ET, EV> Freeze for AsyncProcessorTraining<ET, EV>
impl<ET, EV> RefUnwindSafe for AsyncProcessorTraining<ET, EV>
impl<ET, EV> Send for AsyncProcessorTraining<ET, EV>
impl<ET, EV> Sync for AsyncProcessorTraining<ET, EV>
impl<ET, EV> Unpin for AsyncProcessorTraining<ET, EV>
impl<ET, EV> UnsafeUnpin for AsyncProcessorTraining<ET, EV>
impl<ET, EV> UnwindSafe for AsyncProcessorTraining<ET, EV>
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