pub fn training_progress(total: u64, verbosity: Verbosity) -> ProgressBarExpand description
Create a progress bar for training iterations.
Shows iteration count, loss value, and estimated time to completion.
§Arguments
total- Total number of training iterationsverbosity- Verbosity level to respect
§Returns
A configured progress bar, or hidden bar if progress shouldn’t be shown.
§Examples
use oxigaf_cli::progress;
use oxigaf_cli::verbosity::Verbosity;
let pb = progress::training_progress(1000, Verbosity::Normal);
for i in 0..1000 {
pb.set_message(format!("0.{:04}", 1000 - i));
pb.inc(1);
}
pb.finish_with_message("Training complete");