prodigy.util.logger

log_setup(name, level, file='test.log')[source]
Parameters:
Return type:

Logger

print_progress_bar(iteration, total, decimals=1, length=100, print_end='')[source]

Call in a loop to create terminal progress bar

Parameters:
  • iteration – current iteration

  • total – total iterations

  • decimals – positive number of decimals in percent complete

  • length – character length of bar

  • print_end – end character, e.g. a carriage return