geneticengine.evaluation.tracker
Module Contents
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 |
|
Helper class that provides a standard way to create an ABC using |
- class geneticengine.evaluation.tracker.ProgressTracker(problem, evaluator, recorders=None)
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- Parameters:
problem (geneticengine.problems.Problem) –
evaluator (geneticengine.evaluation.Evaluator) –
recorders (list[geneticengine.evaluation.recorder.SearchRecorder]) –
- problem: geneticengine.problems.Problem
- evaluator: geneticengine.evaluation.Evaluator
- start_time: int
- recorders: list[geneticengine.evaluation.recorder.SearchRecorder]
- get_problem()
- Return type:
- get_number_evaluations()
The cumulative number of evaluations performed.
- Return type:
int
- get_elapsed_time()
The elapsed time since the start in seconds.
- Return type:
float
- evaluate(individuals)
- Parameters:
individuals (list[geneticengine.solutions.Individual]) –
- get_best_individual()
- Return type:
- class geneticengine.evaluation.tracker.SingleObjectiveProgressTracker(problem, evaluator=None, recorders=None)
Bases:
ProgressTrackerHelper class that provides a standard way to create an ABC using inheritance.
- Parameters:
problem (geneticengine.problems.Problem) –
evaluator (geneticengine.evaluation.Evaluator) –
recorders (list[geneticengine.evaluation.recorder.SearchRecorder]) –
- best_individual: geneticengine.solutions.Individual | None
- evaluate(individuals)
- Parameters:
individuals (list[geneticengine.solutions.Individual]) –
- get_best_individual()
- Return type:
- class geneticengine.evaluation.tracker.MultiObjectiveProgressTracker(problem, evaluator=None, recorders=None)
Bases:
ProgressTrackerHelper class that provides a standard way to create an ABC using inheritance.
- Parameters:
problem (geneticengine.problems.Problem) –
evaluator (geneticengine.evaluation.Evaluator) –
recorders (list[geneticengine.evaluation.recorder.SearchRecorder]) –
- pareto_front: list[geneticengine.solutions.Individual]
- is_dominated(current, others)
- Parameters:
current (geneticengine.solutions.Individual) –
others (list[geneticengine.solutions.Individual]) –
- evaluate(individuals)
- Parameters:
individuals (list[geneticengine.solutions.Individual]) –
- get_best_individuals()
- Return type: