metaheuristic_designer.reporters.tqdm_reporter module#
Reporter that shows a tqdm progress bar during optimization.
- class TQDMReporter(resolution=1000, **kwargs)[source]#
Bases:
ReporterReporter that displays a tqdm progress bar.
- Parameters:
- resolutionint, optional
Number of ticks in the progress bar (default 1000). Higher values give smoother updates.
- Parameters:
resolution (int)
Methods
log_end(algorithm)Fill the progress bar to 100% and close it.
log_init(algorithm)Initialise the progress bar and display the first postfix.
log_step(algorithm)Update the progress bar with current iteration, evaluations, and fitness.
- log_init(algorithm)[source]#
Initialise the progress bar and display the first postfix.
- Parameters:
algorithm (Algorithm)