braintools.trainer.get_progress_bar#
- braintools.trainer.get_progress_bar(backend='auto', **kwargs)[source]#
Get a progress bar instance.
- Parameters:
backend (
str) – Progress bar backend to use. Options: ‘auto’, ‘simple’, ‘tqdm’, ‘rich’**kwargs – Additional arguments passed to the progress bar.
- Returns:
Progress bar instance.
- Return type:
Examples
>>> pbar = get_progress_bar('tqdm') >>> pbar.start(total=100, desc='Training')