Skip to content

xlm.utils.file_friendly_progress_callback

FileFriendlyTQDMProgressBar

Bases: TQDMProgressBar

init_validation_tqdm()

Override this to customize the tqdm bar for validation.

init_test_tqdm()

Override this to customize the tqdm bar for testing.

replace_cr_with_newline(message)

TQDM and requests use carriage returns to get the training line to update for each batch without adding more lines to the terminal output. Displaying those in a file won't work correctly, so we'll just make sure that each batch shows up on its one line.