geneticengine.evaluation.recorder

Attributes

FieldMapper

Classes

SearchRecorder

Helper class that provides a standard way to create an ABC using

CSVSearchRecorder

Helper class that provides a standard way to create an ABC using

Module Contents

geneticengine.evaluation.recorder.FieldMapper
class geneticengine.evaluation.recorder.SearchRecorder

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

register(tracker, individual, problem, is_best)
Parameters:
class geneticengine.evaluation.recorder.CSVSearchRecorder(csv_path, problem, fields=None, extra_fields=None, only_record_best_individuals=True)

Bases: SearchRecorder

Helper class that provides a standard way to create an ABC using inheritance.

Parameters:
  • csv_path (str)

  • problem (geneticengine.problems.Problem)

  • fields (dict[str, FieldMapper] | None)

  • extra_fields (dict[str, FieldMapper] | None)

  • only_record_best_individuals (bool)

csv_file
csv_writer
header_printed = False
only_record_best_individuals = True
register(tracker, individual, problem, is_best=False)
Parameters: