Analyzer#
- class ioh.iohcpp.logger.Analyzer(self: ioh.iohcpp.logger.Analyzer, triggers: List[ioh.iohcpp.logger.trigger.Trigger] = [<ioh.iohcpp.logger.trigger.OnImprovement object at 0x7f6db4a628f0>], additional_properties: List[ioh.iohcpp.logger.property.AbstractProperty] = [], root: ioh.iohcpp.logger.Path = <ioh.iohcpp.logger.Path object at 0x7f6db4a6a6f0>, folder_name: str = 'ioh_data', algorithm_name: str = 'algorithm_name', algorithm_info: str = 'algorithm_info', store_positions: bool = False)#
Bases:
AbstractLogger
A logger which stores all tracked properties to a file.
- Parameters:
triggers (list[Trigger]) – List of triggers, i.e. when to trigger logging
additional_properties (list[Property]) – The list of additional properties to keep track of (additional to the default properties for this logger type)
root (str = "./") – The path to which to write the files
folder_name (str = "./") – The name of the folder to which to write the files
algorithm_name (str = "algorithm_name") – Optional name parameter for the algorithm to be added to the info files
algorithm_info (str = "algorithm_info") – Optional info parameter for the algorithm to be added to the info files
store_positions (bool = false) – Boolean value which indicates whether to store the x-positions in the file
Attributes Summary
Reference to the currently attached problem
Methods Summary
add_experiment_attribute
(self, arg0, arg1)add_run_attribute
(*args, **kwargs)Overloaded function.
add_run_attributes
(self, arg0, arg1)add_trigger
(self, arg0)Add a trigger to the logger
call
(self, arg0)Performs logging behaviour
close
(self)reset
(self)Reset the state of the logger
set_experiment_attributes
(self, arg0)set_run_attribute
(self, arg0, arg1)set_run_attributes
(self, arg0)watch
(*args, **kwargs)Overloaded function.
Attributes Documentation
- output_directory#
- problem#
Reference to the currently attached problem
Methods Documentation
- add_experiment_attribute(self: ioh.iohcpp.logger.Analyzer, arg0: str, arg1: str) None #
- add_run_attribute(*args, **kwargs)#
Overloaded function.
add_run_attribute(self: ioh.iohcpp.logger.Analyzer, arg0: str, arg1: float) -> None
add_run_attribute(self: ioh.iohcpp.logger.Analyzer, arg0: object, arg1: str) -> None
- add_run_attributes(self: ioh.iohcpp.logger.Analyzer, arg0: object, arg1: List[str]) None #
- add_trigger(self: ioh.iohcpp.logger.Logger, arg0: ioh.iohcpp.logger.trigger.Trigger) None #
Add a trigger to the logger
- call(self: ioh.iohcpp.logger.Logger, arg0: ioh.iohcpp.LogInfo) None #
Performs logging behaviour
- close(self: ioh.iohcpp.logger.Analyzer) None #
- reset(self: ioh.iohcpp.logger.Logger) None #
Reset the state of the logger
- set_experiment_attributes(self: ioh.iohcpp.logger.Analyzer, arg0: Dict[str, str]) None #
- set_run_attribute(self: ioh.iohcpp.logger.Analyzer, arg0: str, arg1: float) None #
- set_run_attributes(self: ioh.iohcpp.logger.Analyzer, arg0: Dict[str, float]) None #
- watch(*args, **kwargs)#
Overloaded function.
watch(self: ioh.iohcpp.logger.Analyzer, arg0: ioh.iohcpp.logger.property.AbstractProperty) -> None
watch(self: ioh.iohcpp.logger.Analyzer, arg0: object, arg1: str) -> None
watch(self: ioh.iohcpp.logger.Analyzer, arg0: object, arg1: List[str]) -> None