QDpy composes search algorithms with containers that validate and retain evaluated candidates. The source reference follows that path through the Python classes, module functions, and documented implementation hooks.
- Start in qdpy.algorithms.base for the ask/tell loop, callback timing, and emitter routing.
- Read qdpy.phenotype for raw fitness values, objective weights, descriptors, and named scores.
- See qdpy.containers.base for admission and parent history, qdpy.containers.grids for cells, and qdpy.containers.archives for novelty admission.
- See qdpy.containers.mc_aurora for joint autoencoder training and grid rebuilds. The examples cover synthetic trajectories in examples/mc_aurora.py and Gymnasium Walker in examples/bipedal_walker/mc_aurora_walker.py.
- See qdpy.algorithms.sampling and qdpy.algorithms.uncertain for rollout ownership, archive updates after reevaluation, and corrected archive metrics. The examples cover Rastrigin and noisy Gymnasium Walker.
- See qdpy.rl.sac and qdpy.rl.qdac for bounded continuous actors and replay updates, and qdpy.rl.skill_evaluation for held-out skills and passive achieved-cell metrics.
- See qdpy.rl.mome_pgx for objective-specific TD3 mutations and qdpy.rl.wqdil for measure-conditioned imitation and timestep visitation.
- See qdpy.algorithms.conditional_bayesian for per-configuration surrogates, qdpy.algorithms.cmoea for subtask populations, qdpy.algorithms.qed for environment repertoires, and qdpy.rl.gda_qd for model-guided policy gradients.
- See qdpy.algorithms.ga_me and qdpy.algorithms.dynamo for frozen-model design search, qdpy.algorithms.temporal_planning for simulator paths, and qdpy.rl.diveoff for offline latent policies.
- See qdpy.experiment and qdpy.base for YAML configuration, executors, and result-file replacement.
- See qdpy.algorithms.set_scalarization for design portfolios, qdpy.rl.reppo for PPO populations, qdpy.rl.qdos for skill hierarchies, and qdpy.rl.miqd for team fragment learning.
- See qdpy.algorithms.bayesian_deep_qd for deep acquisition, qdpy.algorithms.descriptor_mutation for archive rebuilds, qdpy.algorithms.qd_mapper for paired planner evaluation, and qdpy.algorithms.qd_rec for catalog selection.
- See qdpy.symbolic for expression evaluation, coefficient fitting, and structural and semantic archives.
- The scientific implementations are in qdpy.algorithms, qdpy.metrics, qdpy.benchmarks, and qdpy.hdsobol.
Build the reference
Install Doxygen and run the following from the repository root. Doxygen installation
mkdir -p docs/_build
doxygen docs/Doxyfile
Open docs/_build/doxygen/html/index.html. Doxygen reads the source without importing optional packages. The build excludes the bundled Sobol direction-number table.
Document the source
Use Python docstrings for public classes and methods so the Python help system and Sphinx can use the same text. Describe inputs in terms of the quantities callers supply, including descriptor dimensions, objective direction, budget units, and ownership of mutable candidates.
Use Doxygen ## comment blocks for module summaries and implementation contracts such as rollback, cell bookkeeping, and dispatch ordering. Put @param, @return, and @throws tags on documented hooks where the implementation depends on those conditions. Doxygen comment blocks for Python
Sphinx builds the tutorials and Python API alongside the source reference. Install the project documentation extra, then build from the repository root.
python -m pip install -e ".[docs]"
python -m sphinx -W -b html docs docs/_build/html