mloptimizer.aux.utils
#
Module Contents#
Functions#
|
Initializes a logger and returns it. |
|
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