--- myst: heading_anchors: 2 --- # Validation for recommended methods These checks cover the methods in the [first-search chooser](choose_algorithm.md) and the introductory recommendations in the [full catalog](algorithm_catalog.md). Each entry describes the fixture and the behavior it checks. The source links are pinned to the 0.3.0 release commit. The [installed-package walkthroughs](first_searches.rst) also run in the wheel test suite. ## MAP-Elites A seeded search compares each saved grid elite with the best of all measured candidates in that cell. A separate test replays the saved manifest and checks the archive bytes and evaluation count. The tests cover a scalar objective and fixed rectangular cells. [Cell winners](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_core.py#L308) · [Manifest replay](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_result_outputs.py#L43) ## CVT-MAP-Elites The CVT archive assigns the same cells as scalar distance calculations at boundaries and distance ties. The fixture covers single- and double-precision NumPy arrays and checks assignment to fixed centroids. [Scalar distance comparison](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_core.py#L342) ## CMA-MAE A fixture checks threshold updates and the distinction between the search archive and result elites. An optional pyribs comparison checks archive thresholds and feedback gains for a supplied batch. Validation here covers archive feedback on fixed inputs. [Threshold fixture](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_modern_qd.py#L289) · [Optional pyribs comparison](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_modern_qd.py#L329) ## NSLC Regression fixtures check replacement when a nearest neighbour appears in parent history and verify that a resumed Euclidean NSLC run preserves novelty decisions and parent identity. The checkpoint test exercises both indexed and scan-based search. [Parent-history fixture](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_core.py#L407) · [Checkpoint replay](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_checkpointed_search.py#L123) ## MOME A two-objective fixture compares the Pareto sweep with pairwise dominance. Another test exercises feedback with failed evaluation slots and a partial batch. An optional QDax fixture compares untruncated cell fronts. [Pareto sweep](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_modern_qd.py#L151) · [Batch feedback](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_modern_qd.py#L198) · [Optional QDax comparison](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_modern_qd.py#L261) ## Uncertain MAP-Elites Scripted evaluations check the repeat allocation and raw rollout accounting of six sampling policies. An independent audit fixture verifies that elites can move between cells and resolve collisions while the source measurements stay intact. [Rollout accounting](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_uncertain.py#L256) · [Audit reassignment](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_uncertain.py#L307) ## Constrained MAP-Elites A synthetic mixed-variable fixture checks that zero residual is feasible, infeasible designs stay outside the result grid, and fitness orders candidates when violations tie. Another fixture compares packed and sequential evaluation in a partial generation on a CVT archive. [Feasibility and ranking](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_constrained_coevolution.py#L35) · [Packed CVT search](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_constrained_coevolution.py#L96) ## BOP-Elites Tests compare niche probabilities and expected improvement with Gaussian formulas on a batch of inputs. A separate fixture checks accounting for failed evaluations and descriptors outside the grid. [Acquisition formulas](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_specialized_qd.py#L151) · [Evaluation accounting](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_specialized_qd.py#L211) ## Neural MAP-Elites Small Gymnasium fixtures compare the archives produced by sequential and batched evaluation on complete episodes. A budget test checks the treatment of a lane interrupted before it completes. These checks use the `rl` extra and cover rollout accounting and archive updates on the test environments. [Batched episode comparison](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_rl.py#L75) · [Step budget](https://gitlab.com/leo.cazenille/qdpy/-/blob/aba6f1d01cd41a3df19ccbbbc10257a51a671be9/tests/test_rl.py#L104)