delo.PickleLogger¶
- class delo.PickleLogger(file='optimizer.log', what_to_log=None, optimizer_name='DE')¶
Modification of Logger that saves the numpy arrays as different files
This logger leads to faster saving and loading, but generates more files. What is more those files are not readable for humans.
- __init__(file='optimizer.log', what_to_log=None, optimizer_name='DE')¶
Initialise the Logger
- Parameters
file (string) – The file to which the logged information will be provided. Additional files will be saved in a folder with the same name as the file without extension followed by “_objects”. If such a folder already exist, the additional subsequent number is added. For example, when file=’optimizer.log’, then the folder will be ‘optimizer_objects’, or if such a folder already exists, ‘optimizer_objects0’ and then ‘optimizer_objects1’ and so on.
what_to_log (list, optional) – When provided, only the subset of the what_to_log list will be logged. Other information will not be logged. Useful when only some information is needed to speed up the process of logs gathering and make the log files take less place on hard drive.
optimizer_name (string) – The name that will be logged on the beginning of the log with an “info” tag.
Methods
__init__([file, what_to_log, optimizer_name])Initialise the Logger