geneticengine.evaluation.recorder
Attributes
Classes
Helper class that provides a standard way to create an ABC using |
|
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.ABCHelper class that provides a standard way to create an ABC using inheritance.
- register(tracker, individual, problem, is_best)
- Parameters:
tracker (Any)
individual (geneticengine.solutions.Individual)
problem (geneticengine.problems.Problem)
is_best (bool)
- class geneticengine.evaluation.recorder.CSVSearchRecorder(csv_path, problem, fields=None, extra_fields=None, only_record_best_individuals=True)
Bases:
SearchRecorderHelper 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:
tracker (Any)
individual (geneticengine.solutions.Individual)
problem (geneticengine.problems.Problem)