QDpy source reference¶
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.basefor the ask/tell loop, callback timing, and emitter routing.Read
qdpy.phenotypefor raw fitness values, objective weights, descriptors, and named scores.See
qdpy.containers.basefor admission and parent history,qdpy.containers.gridsfor cells, andqdpy.containers.archivesfor novelty admission.See
qdpy.containers.mc_aurorafor joint autoencoder training and grid rebuilds. The examples cover synthetic trajectories inexamples/mc_aurora.pyand Gymnasium Walker inexamples/bipedal_walker/mc_aurora_walker.py.See
qdpy.algorithms.samplingandqdpy.algorithms.uncertainfor rollout ownership, archive updates after reevaluation, and corrected archive metrics. The examples cover Rastrigin and noisy Gymnasium Walker.See
qdpy.rl.sacandqdpy.rl.qdacfor bounded continuous actors and replay updates, andqdpy.rl.skill_evaluationfor held-out skills and passive achieved-cell metrics.See
qdpy.rl.mome_pgxfor objective-specific TD3 mutations andqdpy.rl.wqdilfor measure-conditioned imitation and timestep visitation.See
qdpy.algorithms.conditional_bayesianfor per-configuration surrogates,qdpy.algorithms.cmoeafor subtask populations,qdpy.algorithms.qedfor environment repertoires, andqdpy.rl.gda_qdfor model-guided policy gradients.See
qdpy.algorithms.ga_meandqdpy.algorithms.dynamofor frozen-model design search,qdpy.algorithms.temporal_planningfor simulator paths, andqdpy.rl.diveofffor offline latent policies.See
qdpy.experimentandqdpy.basefor YAML configuration, executors, and result-file replacement.See
qdpy.algorithms.set_scalarizationfor design portfolios,qdpy.rl.reppofor PPO populations,qdpy.rl.qdosfor skill hierarchies, andqdpy.rl.miqdfor team fragment learning.See
qdpy.algorithms.bayesian_deep_qdfor deep acquisition,qdpy.algorithms.descriptor_mutationfor archive rebuilds,qdpy.algorithms.qd_mapperfor paired planner evaluation, andqdpy.algorithms.qd_recfor catalog selection.See
qdpy.symbolicfor expression evaluation, coefficient fitting, and structural and semantic archives.The scientific implementations are in
qdpy.algorithms,qdpy.metrics,qdpy.benchmarks, andqdpy.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