rcognita.loggers.Logger
- class rcognita.loggers.Logger(state_components_strings, action_components_strings, row_format_list=None, N_episodes=1, N_iterations=1)
Interface class for data loggers. Concrete loggers, associated with concrete system-controller setups, are should be built upon this class. To design a concrete logger: inherit this class, override:
print_sim_step()
:print a row of data of a single simulation step, typically into the console (required).log_data_row()
:same as above, but write to a file (required).- __init__(state_components_strings, action_components_strings, row_format_list=None, N_episodes=1, N_iterations=1)
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(state_components_strings, …[, …])Initialize self.
log_data_row
(datafile, time, state_full, …)print_sim_step
(time, state_full, action, …)reset
()