Struct TuiMetricsRenderer
pub struct TuiMetricsRenderer { /* private fields */ }
Expand description
The terminal UI metrics renderer.
Implementations§
§impl TuiMetricsRenderer
impl TuiMetricsRenderer
pub fn new(
interuptor: TrainingInterrupter,
checkpoint: Option<usize>,
) -> TuiMetricsRenderer
pub fn new( interuptor: TrainingInterrupter, checkpoint: Option<usize>, ) -> TuiMetricsRenderer
Create a new terminal UI renderer.
pub fn persistent(self) -> TuiMetricsRenderer
pub fn persistent(self) -> TuiMetricsRenderer
Set the renderer to persistent mode.
Trait Implementations§
§impl Drop for TuiMetricsRenderer
impl Drop for TuiMetricsRenderer
§impl MetricsRenderer for TuiMetricsRenderer
impl MetricsRenderer for TuiMetricsRenderer
§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)
fn render_train(&mut self, item: TrainingProgress)
Renders the training progress. Read more
§fn render_valid(&mut self, item: TrainingProgress)
fn render_valid(&mut self, item: TrainingProgress)
Renders the validation progress. Read more
Auto Trait Implementations§
impl Freeze for TuiMetricsRenderer
impl !RefUnwindSafe for TuiMetricsRenderer
impl Send for TuiMetricsRenderer
impl Sync for TuiMetricsRenderer
impl Unpin for TuiMetricsRenderer
impl !UnwindSafe for TuiMetricsRenderer
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