Struct TuiMetricsRendererWrapper
pub struct TuiMetricsRendererWrapper { /* private fields */ }Expand description
The terminal UI metrics renderer.
Implementations§
§impl TuiMetricsRendererWrapper
impl TuiMetricsRendererWrapper
pub fn new(
interrupter: Interrupter,
checkpoint: Option<usize>,
) -> TuiMetricsRendererWrapper
pub fn new( interrupter: Interrupter, checkpoint: Option<usize>, ) -> TuiMetricsRendererWrapper
Create a new terminal UI renderer.
pub fn persistent(self) -> TuiMetricsRendererWrapper
pub fn persistent(self) -> TuiMetricsRendererWrapper
Set the renderer to persistent mode.
Trait Implementations§
§impl Drop for TuiMetricsRendererWrapper
impl Drop for TuiMetricsRendererWrapper
§impl MetricsRenderer for TuiMetricsRendererWrapper
impl MetricsRenderer for TuiMetricsRendererWrapper
§fn manual_close(&mut self)
fn manual_close(&mut self)
Keep the renderer from automatically closing, requiring manual action to close it.
§fn register_metric(&mut self, definition: MetricDefinition)
fn register_metric(&mut self, definition: MetricDefinition)
Register a new metric.
§impl MetricsRendererEvaluation for TuiMetricsRendererWrapper
impl MetricsRendererEvaluation for TuiMetricsRendererWrapper
§fn update_test(&mut self, name: EvaluationName, state: MetricState)
fn update_test(&mut self, name: EvaluationName, state: MetricState)
Updates the testing metric state. Read more
§fn render_test(
&mut self,
item: EvaluationProgress,
progress_indicators: Vec<ProgressType>,
)
fn render_test( &mut self, item: EvaluationProgress, progress_indicators: Vec<ProgressType>, )
Renders the testing progress. Read more
§fn on_test_end(
&mut self,
summary: Option<LearnerSummary>,
) -> Result<(), Box<dyn Error>>
fn on_test_end( &mut self, summary: Option<LearnerSummary>, ) -> Result<(), Box<dyn Error>>
Callback method invoked when testing ends, whether it
completed successfully or was interrupted. Read more
§impl MetricsRendererTraining for TuiMetricsRendererWrapper
impl MetricsRendererTraining for TuiMetricsRendererWrapper
§fn update_train(&mut self, state: MetricState)
fn update_train(&mut self, state: MetricState)
Updates the training metric state. Read more
§fn update_valid(&mut self, state: MetricState)
fn update_valid(&mut self, state: MetricState)
Updates the validation metric state. Read more
§fn render_train(
&mut self,
item: TrainingProgress,
progress_indicators: Vec<ProgressType>,
)
fn render_train( &mut self, item: TrainingProgress, progress_indicators: Vec<ProgressType>, )
Renders the training progress. Read more
§fn render_valid(
&mut self,
item: TrainingProgress,
progress_indicators: Vec<ProgressType>,
)
fn render_valid( &mut self, item: TrainingProgress, progress_indicators: Vec<ProgressType>, )
Renders the validation progress. Read more
§fn on_train_end(
&mut self,
summary: Option<LearnerSummary>,
) -> Result<(), Box<dyn Error>>
fn on_train_end( &mut self, summary: Option<LearnerSummary>, ) -> Result<(), Box<dyn Error>>
Callback method invoked when training ends, whether it
completed successfully or was interrupted. Read more
Auto Trait Implementations§
impl Freeze for TuiMetricsRendererWrapper
impl !RefUnwindSafe for TuiMetricsRendererWrapper
impl Send for TuiMetricsRendererWrapper
impl Sync for TuiMetricsRendererWrapper
impl Unpin for TuiMetricsRendererWrapper
impl !UnwindSafe for TuiMetricsRendererWrapper
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