|
QDpy
|
MAP-Elites with fixed-task transfer and time-dependent measurements. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.task_search.MultiTaskResult |
| Live task archives and counters from a fixed-task search. More... | |
| class | qdpy.algorithms.task_search.DynamicResult |
| A dynamic archive and the evaluator calls spent maintaining it. More... | |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.task_search._measurement (archive, result, genome) | |
| qdpy.algorithms.task_search._measure (archive, evaluate, args, genome) | |
| qdpy.algorithms.task_search._offer_with_age (archive, measurement, last_touched, step) | |
| Maintain ages on admission to an ordinary best-only grid. | |
| qdpy.algorithms.task_search.mtmb_search (archives, evaluate, *, dimension, budget, ind_domain=(0, 1), seed=0, share_parents=True, on_step=None) | |
| Share parents among independent task archives. | |
| qdpy.algorithms.task_search._stage_refresh (archive, incumbent, refresh, remeasure) | |
| qdpy.algorithms.task_search.dynamic_map_elites (archive, evaluate, *, dimension, budget, ind_domain=(0, 1), seed=0, refresh="local", on_step=None) | |
| Search while rechecking elites whose measurements may have changed. | |
MAP-Elites with fixed-task transfer and time-dependent measurements.
Definition in file task_search.py.
|
protected |
Build a fresh grid entry and resolve its destination before admission.
Definition at line 98 of file task_search.py.
|
protected |
Validate measurements and resolve their cell before admission.
Definition at line 75 of file task_search.py.
|
protected |
Follow occupied destinations with the original grid still in place.
Definition at line 195 of file task_search.py.
| qdpy.algorithms.task_search.dynamic_map_elites | ( | archive, | |
| evaluate, | |||
| * | , | ||
| dimension, | |||
| budget, | |||
| ind_domain = (0, 1), | |||
| seed = 0, | |||
| refresh = "local", | |||
| on_step = None ) |
Search while rechecking elites whose measurements may have changed.
Run sequential Dynamic MAP-Elites with a shared attempt budget.
The evaluator receives a frozen tick for the offspring and its refresh
chain. Publish a step only after all required refresh calls succeed.
A finite measurement outside the archive domain is valid and unstorable.
:param archive: Empty, parentless, best-only Grid or CVTGrid.
:param evaluate: Callable accepting a genome and the attempts already
spent at the start of the step. Return ``((fitness,), descriptors)``.
:param dimension: Number of real genome coordinates.
:param budget: Attempt limit inclusive of incumbent refreshes.
:param ind_domain: Shared inclusive genome bounds.
:param seed: Seed for parent selection and mutation.
:param refresh: Use local cascading refresh, refresh all on a change,
or perform no refresh (``"local"``, ``"all"``, ``"none"``).
:param on_step: Optional callback receiving the archive and the keyword
arguments ``iteration`` and ``evaluations`` after each search step.
:returns: The live archive and counts for search, refreshes and failures.
Definition at line 224 of file task_search.py.
| qdpy.algorithms.task_search.mtmb_search | ( | archives, | |
| evaluate, | |||
| * | , | ||
| dimension, | |||
| budget, | |||
| ind_domain = (0, 1), | |||
| seed = 0, | |||
| share_parents = True, | |||
| on_step = None ) |
Share parents among independent task archives.
Run fixed-task Multi-Task Multi-Behavior MAP-Elites.
Each proposal is evaluated for one task and can only enter that task's
grid. After warm-up, select each parent by first drawing a populated task
and then drawing an elite from it.
:param archives: Mapping from task IDs to distinct, empty best-only grids.
:param evaluate: Callable taking a task ID and a tuple of real coordinates.
Return a one-value fitness tuple followed by the descriptors.
:param dimension: Number of genome coordinates.
:param budget: Total attempted evaluations across all tasks.
:param ind_domain: Shared inclusive genome bounds.
:param seed: Seed for independent task-selection and variation streams.
:param share_parents: Draw from all populated tasks. False limits the
parent pool to the task being evaluated.
:param on_step: Optional callback receiving the task archives and the
keyword arguments ``iteration`` and ``evaluations`` after each attempt.
:returns: The live task archives and their attempt and failure counts.
Definition at line 129 of file task_search.py.