pub struct AsyncProcessorTraining<P: EventProcessorTraining> { /* private fields */ }Expand description
Event processor for the training process.
Implementations§
Source§impl<P: EventProcessorTraining + 'static> AsyncProcessorTraining<P>
impl<P: EventProcessorTraining + 'static> AsyncProcessorTraining<P>
Trait Implementations§
Source§impl<P: EventProcessorTraining> EventProcessorTraining for AsyncProcessorTraining<P>
impl<P: EventProcessorTraining> EventProcessorTraining for AsyncProcessorTraining<P>
Source§type ItemTrain = <P as EventProcessorTraining>::ItemTrain
type ItemTrain = <P as EventProcessorTraining>::ItemTrain
The training item.
Source§type ItemValid = <P as EventProcessorTraining>::ItemValid
type ItemValid = <P as EventProcessorTraining>::ItemValid
The validation item.
Source§fn process_train(&mut self, event: LearnerEvent<Self::ItemTrain>)
fn process_train(&mut self, event: LearnerEvent<Self::ItemTrain>)
Collect a training event.
Source§fn process_valid(&mut self, event: LearnerEvent<Self::ItemValid>)
fn process_valid(&mut self, event: LearnerEvent<Self::ItemValid>)
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<P> Freeze for AsyncProcessorTraining<P>
impl<P> RefUnwindSafe for AsyncProcessorTraining<P>
impl<P> Send for AsyncProcessorTraining<P>
impl<P> Sync for AsyncProcessorTraining<P>
impl<P> Unpin for AsyncProcessorTraining<P>
impl<P> UnwindSafe for AsyncProcessorTraining<P>
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