Introducing DEAP
Distributed Evolutionary Algorithms in Python (DEAP) is a Python package that allows you to implement various evolutionary algorithms including (but not limited to) the Genetic Algorithm (GA) and Particle Swarm Optimization (PSO). To install DEAP, you can simply call the pip install deap
command.
DEAP allows you to craft your evolutionary algorithm optimization steps in a very flexible manner. The following steps show how to utilize DEAP to perform any hyperparameter tuning methods. More detailed steps, including the code implementation, will be given through various examples in the upcoming sections:
- Define the type classes through the
creator.create()
module. These classes are responsible for defining the type of objects that will be used in the optimization steps. - Define the initializers along with the hyperparameter space and register them in the
base.Toolbox()
container. The initializers are responsible for setting the initial value of the objects...