logger#

Logging functions.

Module Contents#

Functions#

get_logger

Get the logger with the associated name.

log_batch_times

Used to print out the batch times.

log_subtitle

Log with a subtitle.

log_title

Log with a title.

time_elapsed

How much time has elapsed since the search started.

Contents#

evalml.utils.logger.get_logger(name)[source]#

Get the logger with the associated name.

Parameters

name (str) – Name of the logger to get.

Returns

The logger object with the associated name.

evalml.utils.logger.log_batch_times(logger, batch_times)[source]#

Used to print out the batch times.

Parameters
  • logger – the logger.

  • batch_times – dict with (batch number, {pipeline name, pipeline time}).

evalml.utils.logger.log_subtitle(logger, title, underline='=')[source]#

Log with a subtitle.

evalml.utils.logger.log_title(logger, title)[source]#

Log with a title.

evalml.utils.logger.time_elapsed(start_time)[source]#

How much time has elapsed since the search started.

Parameters

start_time (int) – Time when search started.

Returns

elapsed time formatted as a string [H:]MM:SS

Return type

str