Struct AsyncProcessorEvaluation
pub struct AsyncProcessorEvaluation<P>where
P: EventProcessorEvaluation,{ /* private fields */ }Expand description
Event processor for the model evaluation.
Like AsyncProcessorTraining, an event’s error is reported by a later call.
Implementations§
§impl<P> AsyncProcessorEvaluation<P>where
P: EventProcessorEvaluation + 'static,
impl<P> AsyncProcessorEvaluation<P>where
P: EventProcessorEvaluation + 'static,
pub fn new(processor: P) -> AsyncProcessorEvaluation<P>
pub fn new(processor: P) -> AsyncProcessorEvaluation<P>
Create an event processor for model evaluation.
Trait Implementations§
§impl<P> EventProcessorEvaluation for AsyncProcessorEvaluation<P>where
P: EventProcessorEvaluation,
impl<P> EventProcessorEvaluation for AsyncProcessorEvaluation<P>where
P: EventProcessorEvaluation,
§type ItemTest = <P as EventProcessorEvaluation>::ItemTest
type ItemTest = <P as EventProcessorEvaluation>::ItemTest
The test item.
§fn process_test(
&mut self,
event: EvaluatorEvent<<AsyncProcessorEvaluation<P> as EventProcessorEvaluation>::ItemTest>,
) -> Result<(), EventProcessorError>
fn process_test( &mut self, event: EvaluatorEvent<<AsyncProcessorEvaluation<P> as EventProcessorEvaluation>::ItemTest>, ) -> Result<(), EventProcessorError>
Collect a test event. Read more
§fn flush(&mut self) -> Result<(), EventProcessorError>
fn flush(&mut self) -> Result<(), EventProcessorError>
Wait until previously submitted events are processed (no-op for sync processors). Read more
§fn renderer(self) -> Box<dyn MetricsRenderer>
fn renderer(self) -> Box<dyn MetricsRenderer>
Returns the renderer used for evaluation.
Auto Trait Implementations§
impl<P> !RefUnwindSafe for AsyncProcessorEvaluation<P>
impl<P> !Unpin for AsyncProcessorEvaluation<P>
impl<P> !UnsafeUnpin for AsyncProcessorEvaluation<P>
impl<P> !UnwindSafe for AsyncProcessorEvaluation<P>
impl<P> Freeze for AsyncProcessorEvaluation<P>
impl<P> Send for AsyncProcessorEvaluation<P>
impl<P> Sync for AsyncProcessorEvaluation<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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§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