class documentation

class BaseDataLogger(object):

Known subclasses: cma.logger.CMADataLogger, cma.purecma.CMAESDataLogger

View In Hierarchy

abstract base class for a data logger that can be used with an OOOptimizer.

Details: attribute modulo is used in OOOptimizer.optimize.

Method __init__ Undocumented
Method add abstract method, add a "data point" from the state of optim into the logger.
Method disp abstract method, display some data trace
Method load load data from file name or self.filename
Method plot abstract method, plot data
Method register register an optimizer optim, only needed if method add is called without passing the optim argument
Method save save data to file name or self.filename
Instance Variable filename file to save to or load from unless specified otherwise
Instance Variable optim object instance to be logging data from
Property data logged data in a dictionary
Instance Variable _data dict of logged data
def __init__(self):
def add(self, optim=None, more_data=None, **kwargs):

abstract method, add a "data point" from the state of optim into the logger.

The argument optim can be omitted if optim was register ()-ed before, acts like an event handler

def disp(self, *args, **kwargs):

abstract method, display some data trace

def load(self, name=None):

load data from file name or self.filename

def plot(self, *args, **kwargs):

abstract method, plot data

def register(self, optim, *args, **kwargs):

register an optimizer optim, only needed if method add is called without passing the optim argument

def save(self, name=None):

save data to file name or self.filename

filename: str =

file to save to or load from unless specified otherwise

optim =

object instance to be logging data from

@property
data =

logged data in a dictionary

_data =

dict of logged data