Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
bje- committed Jun 23, 2022
2 parents bc5737c + b8513fc commit c3fa8b1
Show file tree
Hide file tree
Showing 91 changed files with 643 additions and 689 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ MANIFEST
*.orig
.DS_Store
*.so

# IDE stuff
.idea
.vscode
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DEAP includes the following features:

* Genetic algorithm using any imaginable representation
* List, Array, Set, Dictionary, Tree, Numpy Array, etc.
* Genetic programing using prefix trees
* Genetic programming using prefix trees
* Loosely typed, Strongly typed
* Automatically defined functions
* Evolution strategies (including CMA-ES)
Expand Down Expand Up @@ -148,5 +148,6 @@ Authors of scientific papers including results generated using DEAP are encourag
* DEAP is also used in ROS as an optimization package http://www.ros.org/wiki/deap.
* DEAP is an optional dependency for [PyXRD](https://github.com/mathijs-dumon/PyXRD), a Python implementation of the matrix algorithm developed for the X-ray diffraction analysis of disordered lamellar structures.
* DEAP is used in [glyph](https://github.com/Ambrosys/glyph), a library for symbolic regression with applications to [MLC](https://en.wikipedia.org/wiki/Machine_learning_control).
* DEAP is used in [Sklearn-genetic-opt](https://github.com/rodrigo-arenas/Sklearn-genetic-opt), an open source tool that uses evolutionary programming to fine tune machine learning hyperparameters.

If you want your project listed here, send us a link and a brief description and we'll be glad to add it.
19 changes: 9 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
vmImage: 'vs2017-win2016'
strategy:
matrix:
Python27_VS2017:
python.version: '2.7'
Python36_VS2017:
python.version: '3.6'
Python37_VS2017:
Expand All @@ -21,15 +19,13 @@ jobs:
python.version: '3.8'
Python39_VS2017:
python.version: '3.9'
Python310_VS2017:
python.version: '3.10'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
choco install vcpython27 --yes
condition: eq(variables['python.version'], '2.7')
displayName: 'Install vcpython27'
- script: |
python -m pip install --upgrade pip
pip install numpy
Expand All @@ -41,14 +37,12 @@ jobs:
python setup.py sdist bdist_wheel
twine upload -r pypi -u $(twineUsername) -p $(twinePassword) --skip-existing --disable-progress-bar dist/*
displayName: 'Publish wheel to PyPi'
- job: macOS10_14Build
pool:
vmImage: 'macOS-10.14'
strategy:
matrix:
Python27_macOS1014:
python.version: '2.7'
Python36_macOS1014:
python.version: '3.6'
Python37_macOS1014:
Expand All @@ -57,6 +51,8 @@ jobs:
python.version: '3.8'
Python39_macOS1014:
python.version: '3.9'
Python310_macOS1014:
python.version: '3.10'
steps:
- task: UsePythonVersion@0
inputs:
Expand All @@ -73,7 +69,7 @@ jobs:
python setup.py sdist bdist_wheel
twine upload -r pypi -u $(twineUsername) -p $(twinePassword) --skip-existing --disable-progress-bar dist/*
displayName: 'Publish wheel to PyPi'
- job: Manylinux2010Build
pool:
vmImage: 'ubuntu-16.04'
Expand Down Expand Up @@ -117,6 +113,9 @@ jobs:
Py39 Arm64:
python.version: 'cp39-cp39'
manylinux: 'manylinux_aarch64'
Py310 Arm64:
python.version: 'cp310-cp310'
manylinux: 'manylinux_aarch64'
steps:
- script: docker run --rm --privileged hypriot/qemu-register
displayName: 'Registering qemu'
Expand Down
10 changes: 5 additions & 5 deletions deap/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


def varAnd(population, toolbox, cxpb, mutpb):
"""Part of an evolutionary algorithm applying only the variation part
r"""Part of an evolutionary algorithm applying only the variation part
(crossover **and** mutation). The modified individuals have their
fitness invalidated. The individuals are cloned so returned population is
independent of the input population.
Expand Down Expand Up @@ -190,7 +190,7 @@ def eaSimple(population, toolbox, cxpb, mutpb, ngen, stats=None,


def varOr(population, toolbox, lambda_, cxpb, mutpb):
"""Part of an evolutionary algorithm applying only the variation part
r"""Part of an evolutionary algorithm applying only the variation part
(crossover, mutation **or** reproduction). The modified individuals have
their fitness invalidated. The individuals are cloned so returned
population is independent of the input population.
Expand Down Expand Up @@ -247,7 +247,7 @@ def varOr(population, toolbox, lambda_, cxpb, mutpb):

def eaMuPlusLambda(population, toolbox, mu, lambda_, cxpb, mutpb, ngen,
stats=None, halloffame=None, verbose=__debug__):
"""This is the :math:`(\mu + \lambda)` evolutionary algorithm.
r"""This is the :math:`(\mu + \lambda)` evolutionary algorithm.
:param population: A list of individuals.
:param toolbox: A :class:`~deap.base.Toolbox` that contains the evolution
Expand Down Expand Up @@ -339,7 +339,7 @@ def eaMuPlusLambda(population, toolbox, mu, lambda_, cxpb, mutpb, ngen,

def eaMuCommaLambda(population, toolbox, mu, lambda_, cxpb, mutpb, ngen,
stats=None, halloffame=None, verbose=__debug__):
"""This is the :math:`(\mu~,~\lambda)` evolutionary algorithm.
r"""This is the :math:`(\mu~,~\lambda)` evolutionary algorithm.
:param population: A list of individuals.
:param toolbox: A :class:`~deap.base.Toolbox` that contains the evolution
Expand Down Expand Up @@ -470,7 +470,7 @@ def eaGenerateUpdate(toolbox, ngen, halloffame=None, stats=None,
This function expects :meth:`toolbox.generate` and :meth:`toolbox.evaluate` aliases to be
registered in the toolbox.
.. [Colette2010] Collette, Y., N. Hansen, G. Pujol, D. Salazar Aponte and
R. Le Riche (2010). On Object-Oriented Programming of Optimizers -
Examples in Scilab. In P. Breitkopf and R. F. Coelho, eds.:
Expand Down
Loading

0 comments on commit c3fa8b1

Please sign in to comment.