Choose your first QDpy search¶
Pick a method based on what your evaluator measures. The first four
workflows run with the base package from PyPI. The Gymnasium example
uses the rl extra.
Problem |
Start with |
Reference |
Evaluator and budget |
Runnable example |
Validation |
|---|---|---|---|---|---|
One quality objective and meaningful descriptors |
Return one fitness value and the descriptors. Budget candidate attempts. |
||||
Several objectives with local trade-offs |
Return the raw objective vector and descriptors. Budget candidate attempts. |
||||
Repeated measurements of a design can disagree |
Return noisy fitness and descriptors. Budget raw rollouts and reserve independent audit calls. |
||||
Designs must meet explicit constraints |
Return fitness, descriptors, and named residuals that are nonpositive when feasible. Budget candidate attempts. |
||||
Each real evaluation is expensive |
Return measured fitness and descriptors. Budget true evaluations. Use batch BOP-Elites if several can run at once. |
||||
Learn policies for a simulator |
Neural MAP-Elites with |
Provide a Gymnasium environment and an episode descriptor. Budget environment steps. |
Use the full catalog for archive types, extras, and details on how each implementation follows its source method. Use the evaluation guide when you need to drive evaluations yourself or use an executor. Full catalog · Evaluation interfaces
Save and reopen your first archive¶
Copy one of the four installed-package scripts into an empty directory. Each takes a custom evaluator through a search, a numeric archive export, and a readout of the saved measurements. First searches from PyPI
The checkout also has an example that plots the saved MAP-Elites fitness or MOME occupancy. Run it from the repository root with QDpy installed. Archive plotting example
python -I examples/archive_roundtrip.py map-elites build/first-map-elites
python -I examples/archive_roundtrip.py mome build/first-mome
Each plotting run spends 64 candidate attempts and writes run.json, a
content-addressed archive JSON file, and archive.png. The script checks
the archive’s SHA-256 and compares the saved metrics with the live grid.
Archive and manifest formats · Multi-seed reporting
For a different native evaluator, pass output_dir to qdpy.simple.run
and use the same load-and-plot code when its archive has a numeric
export. Use the method’s rollout or policy reporting tools when its
output uses a different format. Archive plotting