pub struct IncrementalEvaluator { /* private fields */ }Expand description
Incremental evaluator
Implementations§
Source§impl IncrementalEvaluator
impl IncrementalEvaluator
Sourcepub fn new(config: IncrementalEvaluationConfig) -> Self
pub fn new(config: IncrementalEvaluationConfig) -> Self
Create a new incremental evaluator
Sourcepub fn update<F>(
&mut self,
features: Array1<Float>,
true_label: Float,
prediction: Float,
model_update_fn: F,
) -> Result<Option<PerformanceSnapshot>, Box<dyn Error>>
pub fn update<F>( &mut self, features: Array1<Float>, true_label: Float, prediction: Float, model_update_fn: F, ) -> Result<Option<PerformanceSnapshot>, Box<dyn Error>>
Process a new data point and evaluate incrementally
Sourcepub fn finalize(self) -> IncrementalEvaluationResult
pub fn finalize(self) -> IncrementalEvaluationResult
Get the final evaluation result
Auto Trait Implementations§
impl Freeze for IncrementalEvaluator
impl !RefUnwindSafe for IncrementalEvaluator
impl Send for IncrementalEvaluator
impl Sync for IncrementalEvaluator
impl Unpin for IncrementalEvaluator
impl !UnwindSafe for IncrementalEvaluator
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