mloptimizer.aux.utils#

Module Contents#

Functions#

init_logger([filename, log_path, debug])

Initializes a logger and returns it.

create_optimization_folder(folder)

Creates a folder to save the results of the optimization.

mloptimizer.aux.utils.init_logger(filename='mloptimizer.log', log_path='.', debug=False)[source]#

Initializes a logger and returns it.

Parameters:
  • filename (str, optional) – The name of the log file. The default is ‘mloptimizer.log’.

  • log_path (str, optional) – The path of the log file. The default is “.”.

  • debug (bool, optional) – Activate debug level. The default is False.

Returns:

custom_logger – The logger.

Return type:

logging.Logger

mloptimizer.aux.utils.create_optimization_folder(folder)[source]#

Creates a folder to save the results of the optimization.

Parameters:

folder (str) – The path of the folder to create.

Returns:

folder – The path of the folder created.

Return type:

str