|
QDpy
|
Canonicalize each design before evaluation and archive admission. More...
Public Member Functions | |
| stats (self) | |
| run (self, evaluate, *, proposals, max_evaluations=None) | |
| Run additional proposals, skipping evaluation of repeated canonical designs. | |
Canonicalize each design before evaluation and archive admission.
Search only distinct canonical representatives in a best-only Grid or CVTGrid.
:param archive: Empty reporting archive with scalar fitness.
:param canonicalize: Callback (genome_tuple) producing a canonical
genome iterable with hashable entries. It must be deterministic and
idempotent, and preserve fitness, descriptors, and feasibility.
:param propose: Callback (rng) producing an initial iterable genome.
:param mutate: Callback (parent_tuple, rng) producing an offspring genome.
:param seed: Private proposal and parent selection seed.
The search owns a cache of successfully evaluated representatives,
including measurements outside the reporting domain. Keep the
evaluator, geometry, and canonicalization fixed across calls.
Definition at line 31 of file symmetry_qd.py.
| qdpy.algorithms.symmetry_qd.SymmetryAwareMAPElites.run | ( | self, | |
| evaluate, | |||
| * | , | ||
| proposals, | |||
| max_evaluations = None ) |
Run additional proposals, skipping evaluation of repeated canonical designs.
Return cumulative stats. The optional evaluation limit applies to this call. Evaluate the canonical tuple and return ((fitness,), descriptors). Failed or invalid measurements propagate and leave the candidate eligible for a later attempt.
Definition at line 63 of file symmetry_qd.py.
| qdpy.algorithms.symmetry_qd.SymmetryAwareMAPElites.stats | ( | self | ) |
Return an immutable snapshot of proposal and evaluation costs.
Definition at line 58 of file symmetry_qd.py.