|
QDpy
|
Illuminate verified designs and prioritize known counterexamples during future checks. More...
Public Member Functions | |
| stats (self) | |
| counterexamples (self) | |
| pending_genome (self) | |
| run (self, *, proposals, checks) | |
| Spend additional independent proposal and verification budgets. | |
Illuminate verified designs and prioritize known counterexamples during future checks.
Run counterexample-guided MAP-Elites over a fixed finite scenario universe.
:param archive: Empty, best-only scalar Grid or CVTGrid. This archive
is owned by the search for the duration of verification.
:param scenarios: Nonempty ordered collection of distinct hashable cases.
:param propose: Callback (rng) producing an initial iterable genome.
:param mutate: Callback (parent_tuple, rng) producing an offspring genome.
:param measure: Callback (genome) returning ((fitness,), descriptors).
The measurement fixes the candidate's niche and its quality.
:param verify: Callback (genome, scenario) returning True on success,
False on a counterexample, or None when the result is inconclusive.
:param initial_scenarios: Cases to check before unknown cases.
:param seed: Private proposal and parent selection seed.
Verification should be deterministic. Only candidates that can improve
the archive are checked. A candidate enters the archive only after
passing the complete scenario universe. A failed scenario moves ahead
of unseen cases for later candidates. A candidate interrupted by the
check budget or an inconclusive result resumes on the next run call.
Definition at line 59 of file counterexample_qd.py.
| qdpy.algorithms.counterexample_qd.CounterexampleMAPElites.counterexamples | ( | self | ) |
Return discovered counterexamples in first-discovery order.
Definition at line 107 of file counterexample_qd.py.
| qdpy.algorithms.counterexample_qd.CounterexampleMAPElites.pending_genome | ( | self | ) |
Return the genome awaiting verification, or None.
Definition at line 112 of file counterexample_qd.py.
| qdpy.algorithms.counterexample_qd.CounterexampleMAPElites.run | ( | self, | |
| * | , | ||
| proposals, | |||
| checks ) |
Spend additional independent proposal and verification budgets.
Return cumulative stats and retain a partial verification for the next call. Zero proposals allows finishing the pending candidate. Reaching an inconclusive case pauses this call. A callback exception propagates after charging the attempted operation.
Definition at line 168 of file counterexample_qd.py.
| qdpy.algorithms.counterexample_qd.CounterexampleMAPElites.stats | ( | self | ) |
Return an immutable snapshot of cumulative search work.
Definition at line 102 of file counterexample_qd.py.