pub struct ProgressBarCallback { /* private fields */ }Expand description
Throttled Keras/tqdm-style wall-throughput progress display.
Implementations§
Source§impl ProgressBarCallback
impl ProgressBarCallback
Sourcepub fn set_show_epoch_header(&mut self, show: bool)
pub fn set_show_epoch_header(&mut self, show: bool)
Enable or suppress the epoch N/M header.
Sourcepub fn render_line(
&self,
state: TrainingSnapshot,
config: &TrainingConfig,
) -> String
pub fn render_line( &self, state: TrainingSnapshot, config: &TrainingConfig, ) -> String
Format one deterministic progress line without writing it.
Trait Implementations§
Source§impl Default for ProgressBarCallback
impl Default for ProgressBarCallback
Source§impl TrainingCallback for ProgressBarCallback
impl TrainingCallback for ProgressBarCallback
fn on_train_begin( &mut self, _context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>
fn on_epoch_begin( &mut self, context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>
fn on_step_end( &mut self, context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>
fn on_epoch_end( &mut self, context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>
fn on_train_end( &mut self, context: &mut TrainingCallbackContext<'_>, ) -> Result<TrainingControl>
Auto Trait Implementations§
impl Forget for ProgressBarCallback
impl Freeze for ProgressBarCallback
impl Move for ProgressBarCallback
impl RefUnwindSafe for ProgressBarCallback
impl Send for ProgressBarCallback
impl Sync for ProgressBarCallback
impl Unpin for ProgressBarCallback
impl UnsafeUnpin for ProgressBarCallback
impl UnwindSafe for ProgressBarCallback
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