pub struct TuiMetricsRendererWrapper { /* private fields */ }Available on crate feature
tui only.Expand description
The terminal UI metrics renderer.
Implementations§
Source§impl TuiMetricsRendererWrapper
impl TuiMetricsRendererWrapper
Sourcepub fn new(interrupter: Interrupter, checkpoint: Option<usize>) -> Self
pub fn new(interrupter: Interrupter, checkpoint: Option<usize>) -> Self
Create a new terminal UI renderer.
Sourcepub fn persistent(self) -> Self
pub fn persistent(self) -> Self
Set the renderer to persistent mode.
Trait Implementations§
Source§impl Drop for TuiMetricsRendererWrapper
impl Drop for TuiMetricsRendererWrapper
Source§impl MetricsRenderer for TuiMetricsRendererWrapper
impl MetricsRenderer for TuiMetricsRendererWrapper
Source§fn manual_close(&mut self)
fn manual_close(&mut self)
Keep the renderer from automatically closing, requiring manual action to close it.
Source§fn register_metric(&mut self, definition: MetricDefinition)
fn register_metric(&mut self, definition: MetricDefinition)
Register a new metric.
Source§impl MetricsRendererEvaluation for TuiMetricsRendererWrapper
impl MetricsRendererEvaluation for TuiMetricsRendererWrapper
Source§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
Source§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
Source§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
Source§impl MetricsRendererTraining for TuiMetricsRendererWrapper
impl MetricsRendererTraining for TuiMetricsRendererWrapper
Source§fn update_train(&mut self, state: MetricState)
fn update_train(&mut self, state: MetricState)
Updates the training metric state. Read more
Source§fn update_valid(&mut self, state: MetricState)
fn update_valid(&mut self, state: MetricState)
Updates the validation metric state. Read more
Source§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
Source§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
Source§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 !RefUnwindSafe for TuiMetricsRendererWrapper
impl !UnwindSafe for TuiMetricsRendererWrapper
impl Freeze for TuiMetricsRendererWrapper
impl Send for TuiMetricsRendererWrapper
impl Sync for TuiMetricsRendererWrapper
impl Unpin for TuiMetricsRendererWrapper
impl UnsafeUnpin 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
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