Struct AsyncProcessorTraining
pub struct AsyncProcessorTraining<P>where
P: EventProcessorTraining,{ /* private fields */ }Expand description
Event processor for the training process.
Implementations§
§impl<P> AsyncProcessorTraining<P>where
P: EventProcessorTraining + 'static,
impl<P> AsyncProcessorTraining<P>where
P: EventProcessorTraining + 'static,
pub fn new(processor: P) -> AsyncProcessorTraining<P>
pub fn new(processor: P) -> AsyncProcessorTraining<P>
Create an event processor for training.
Trait Implementations§
§impl<P> EventProcessorTraining for AsyncProcessorTraining<P>where
P: EventProcessorTraining,
impl<P> EventProcessorTraining for AsyncProcessorTraining<P>where
P: EventProcessorTraining,
§type ItemTrain = <P as EventProcessorTraining>::ItemTrain
type ItemTrain = <P as EventProcessorTraining>::ItemTrain
The training item.
§type ItemValid = <P as EventProcessorTraining>::ItemValid
type ItemValid = <P as EventProcessorTraining>::ItemValid
The validation item.
§fn process_train(
&mut self,
event: LearnerEvent<<AsyncProcessorTraining<P> as EventProcessorTraining>::ItemTrain>,
)
fn process_train( &mut self, event: LearnerEvent<<AsyncProcessorTraining<P> as EventProcessorTraining>::ItemTrain>, )
Collect a training event.
§fn process_valid(
&mut self,
event: LearnerEvent<<AsyncProcessorTraining<P> as EventProcessorTraining>::ItemValid>,
)
fn process_valid( &mut self, event: LearnerEvent<<AsyncProcessorTraining<P> as EventProcessorTraining>::ItemValid>, )
Collect a validation event.
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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