|
QDpy
|
Rebuild a feasible repertoire from cached measurements. More...
Public Member Functions | |
| constraints (self) | |
| set_constraints (self, constraints) | |
| Rebuild the live archive without new evaluator calls. | |
| run (self, evaluate, *, budget) | |
| Continue the search under the current score limits. | |
Rebuild a feasible repertoire from cached measurements.
Search and replay measured designs under inclusive score bounds.
:param archive: Empty parentless, best-only Grid or CVTGrid with a
single objective and native fitness and descriptors.
:param score_names: Names of the finite scalar measurements returned
by every successful evaluation, including currently unused scores.
:param constraints: Mapping from score names to (lower, upper). Use
None for an open end. Omit a name to remove its constraint.
:param history_size: Number of recent valid measurements to remember
alongside the live elites. Zero keeps only the live elites.
:param propose: Callback (rng) returning an immutable hashable genome.
:param mutate: Callback (parent_genome, rng) returning an offspring.
:param seed: Seed for proposal and parent selection.
Definition at line 22 of file variable_constraints.py.
| qdpy.algorithms.variable_constraints.VariableConstraintMAPElites.constraints | ( | self | ) |
Return a copy of the active score bounds.
Definition at line 61 of file variable_constraints.py.
| qdpy.algorithms.variable_constraints.VariableConstraintMAPElites.run | ( | self, | |
| evaluate, | |||
| * | , | ||
| budget ) |
Continue the search under the current score limits.
Evaluate new genomes and return the live archive. Return (scalar fitness, descriptors, scores) from evaluate(genome). Scores must contain every declared measurement. Return None to report a failed attempt. Use stable measurements for repeated genomes.
Definition at line 104 of file variable_constraints.py.
| qdpy.algorithms.variable_constraints.VariableConstraintMAPElites.set_constraints | ( | self, | |
| constraints ) |
Rebuild the live archive without new evaluator calls.
Apply new bounds to live and remembered designs and return the archive.
Definition at line 86 of file variable_constraints.py.