Overview
DEAP-ER is a typed evolutionary-algorithm toolbox for Python 3.12 and newer. Register operators, run an algorithm. The published surface covers genetic algorithms and mixed encodings, tree and columnar GP (including memetic and semantic search helpers and a private Push policy loop), CMA (boxed, separable, restarting, and MO-CMA), multi-objective and quality-diversity search, case-structured selection, co-evolution and island stepping, parallel evaluation, records and checkpoints, and common benchmarks.
The library started as a rewrite of DEAP. The toolbox model is the same; the API is not a drop-in rename. Function names, parameter order, and a few contracts changed. The differences page is the migration note.
pip install deap-er
uv add deap-er
Capabilities
- Genetic algorithms on ordinary Python containers (list, array, set, dict, tree, NumPy array, and similar), including mixed encodings and differential-evolution variation
- Genetic programming: prefix trees (loosely typed, strongly typed,
ADFs), SlimGP, columnar programs over named
float64columns with vectorized, causal-window (per-column strides for held, slower-cadence columns), tape / Numba backends (population tape CSE), homologous and semantic crossover, interval certificates that skip dead tapes, and a private Push GP policy loop that evolves the search around those tapes - Program-search helpers: growing language, semantic descriptors,
budget-capped memetic polish, Darwinian Keijzer affine scoring,
and a policy step on
ea_simple - Evolution strategies: CMA, boxed CMA, separable CMA, IPOP/BIPOP restarts, and MO-CMA
- Multi-objective search (SPEA-II, NSGA-II, NSGA-III, SMS-EMOA, MOEA/D, AGE-MOEA-II) with optional constraint-dominance on NSGA-II
- Quality-diversity search (MAP-Elites: grid, CVT, and unstructured archives; novelty selection and iso+line variation; teams from occupied archive cells)
- Case-structured selection (lexicase, ε-lexicase with dynamic filter modes, batch ε-lexicase, case-subset tournament, structural meta-case regularization, informed down-sampling and generation schedules, program teams, co-evolving case exams, held-out generalization and successive-halving, and noisy fitness resample / F-Race stop)
- Cooperative and competitive co-evolution, plus heterogeneous island
stepping (
step_islands, ring / fully connected / random migration,island_eval_keys) - Parallel evaluation with multiprocessing or Ray, plus spawned RNG streams
- Statistics, hall of fame (JSON round-trip), evaluation cache and budget, and a NetworkX-compatible genealogy
- Checkpoints that persist a run to disk (
hofas JSON whenhof_ind_cls=is set) - Benchmarks against common test functions
- Worked examples of symbolic regression, particle swarm, differential evolution, MAP-Elites, mixed encoding, lexicase, columnar GP, homologous / semantic variation, and CMA (boxed, separable, restarting)
Relative to DEAP
Same toolbox model. Counted from the differences inventory:
- 21 still-open DEAP issues implemented (some older than a decade)
- 107 correctness bugs fixed — operators, GP, CMA, records, checkpoints, published benchmarks, creator, utilities, and algorithms
- 69 capabilities DEAP does not have, including boxed CMA, mixed-gene mutation, logbook JSON, columnar GP, and Push GP
The package is typed, uses snake_case, and is Apache-2.0. Hypervolume work delegates to moocore.
Documentation
See the documentation for the complete guide.
Performance
On the same genomes and GP expressions, deap-er is fastest where DEAP
still walks Python loops. The largest shared-case gains versus DEAP
1.4.4 are lexicase selection (~68×), NSGA convergence (~45×), NSGA-II
(~14×), cached compile_tree (~13×), SPEA-II (~5×), and
clone_individual (~4×). Tournament selection is about 1.8× after a
batched integer draw. A tiny ea_simple OneMax loop stays a bit
behind (~0.87×).
Charts, the full case list, and how to reproduce are on the performance page.
Acknowledgments
DEAP-ER started as a rewrite of DEAP, originally developed at the Computer Vision and Systems Laboratory (CVSL) at Université Laval.
The original DEAP authors and main contributors, in alphabetical order:
- François-Michel De Rainville
- Félix-Antoine Fortin
- Christian Gagné
- Olivier Gagnon
- Marc-André Gardner
- Simon Grenier
- Yannick Hold-Geoffroy
- Marc Parizeau
If you use this library in a scientific paper, please also cite the original
DEAP paper (see CITATION.cff):
@article{DEAP_JMLR2012,
author = {F{\'e}lix-Antoine Fortin and Fran{\c{c}}ois-Michel {De Rainville}
and Marc-Andr{\'e} Gardner and Marc Parizeau and Christian Gagn{\'e}},
title = {{DEAP}: Evolutionary Algorithms Made Easy},
journal = {Journal of Machine Learning Research},
volume = {13},
year = {2012},
pages = {2171--2175}
}
Metadata
Release files for deap-er 3.2.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deap_er-3.2.10.tar.gz | 284.0 kB | With provenance | Details for deap_er-3.2.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deap_er-3.2.10-py3-none-any.whl | Python 3 | none | any | Details for deap_er-3.2.10-py3-none-any.whl |
Total release size: 748.7 kB
Release files / deap_er-3.2.10.tar.gz
| Download URL | deap_er-3.2.10.tar.gz |
|---|---|
| Size | 284.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7096494873c2980bdc588b265f05e56d7357f067cf4afcacda81924551bc0abc
|
|
BLAKE2b-256 checksum How to use checksums |
1cce5b234125449123fc23617d70ad2fb6ec3ea4ab1028dce859c9a0e3e666fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / deap_er-3.2.10-py3-none-any.whl
| Download URL | deap_er-3.2.10-py3-none-any.whl |
|---|---|
| Size | 464.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4f109478f84b93af1902a88bc7f9e63de07cd938c2be3bfe1b6eabeb1163659
|
|
BLAKE2b-256 checksum How to use checksums |
c95f57913b646c3d186acf58856162a882a41ce3027a076caa4e125efc593c5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logSecurity for deap-er 3.2.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for deap_er-3.2.10.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.