geneticengine.evaluation.tracker
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 |
|
Module Contents
- class geneticengine.evaluation.tracker.IndividualMemory
Bases:
abc.ABCHelper class that provides a standard way to create an ABC using inheritance.
- append(ind)
- Parameters:
- Return type:
bool
- to_list()
- Return type:
- class geneticengine.evaluation.tracker.PriorityQueue(problem)
Bases:
IndividualMemoryHelper class that provides a standard way to create an ABC using inheritance.
- Parameters:
problem (geneticengine.problems.Problem)
- problem
- best = None
- append(ind)
- Return type:
bool
- to_list()
- class geneticengine.evaluation.tracker.ParetoFront(problem)
Bases:
IndividualMemoryHelper class that provides a standard way to create an ABC using inheritance.
- Parameters:
problem (geneticengine.problems.Problem)
- front: list[geneticengine.solutions.Individual]
- problem
- is_dominated(current, others)
- Parameters:
current (geneticengine.solutions.Individual)
others (list[geneticengine.solutions.Individual])
- append(ind)
- Return type:
bool
- to_list()
- class geneticengine.evaluation.tracker.ProgressTracker(problem, evaluator=None, recorders=None)
- 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]
- memory: IndividualMemory
- 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 (Iterable[geneticengine.solutions.Individual])
- evaluate_single(individual)
- Parameters:
individual (geneticengine.solutions.Individual)
- get_best_individuals()
- Return type: