Questions tagged [deap]

DEAP is an evolutionary computation framework for rapid prototyping and testing of ideas

DEAP is a novel evolutionary computation framework for rapid prototyping and testing of ideas. It seeks to make algorithms explicit and data structures transparent. It works in perfect harmony with parallelisation mechanism such as multiprocessing and SCOOP.

Features:

  • Genetic algorithm using any imaginable representation
  • List, Array, Set, Dictionary, Tree, Numpy Array, etc.
  • Genetic programing using prefix trees
  • Loosely typed, Strongly typed
  • Automatically defined functions
  • Evolution strategies (including CMA-ES)
  • Multi-objective optimisation (NSGA-II, SPEA-II)
  • Co-evolution (cooperative and competitive) of multiple populations
  • Parallelization of the evaluations (and more)
  • Hall of Fame of the best individuals that lived in the population
  • Checkpoints that take snapshots of a system regularly
  • Benchmarks module containing most common test functions
  • Genealogy of an evolution (that is compatible with NetworkX)
  • Examples of alternative algorithms: Particle Swarm Optimization, Differential Evolution, - Estimation of Distribution Algorithm
173 questions
0
votes
0 answers

Python DEAP, why the genealogy history plot doesn't match the number of generations I set in my code?

Click here to see the genealogy tree This history shows 6 generations, but I set ngen to be 3. Why don't they match? my code: result, log = algorithms.eaSimple(population, toolbox,cxpb=0.5, mutpb=0.2,ngen=3,…
liyc
  • 33
  • 6
0
votes
0 answers

Python Deap Lib TypeError while compiling fitness

I don't know why i got an exception with my python software (i'm running under windows): File "C:\Users\lumy\PycharmProjects\EternityPuzzle\puzzle.py", line 94, in log_stats self.record = self.stats.compile(self.population) File…
Lumy
  • 401
  • 4
  • 20
0
votes
1 answer

How to preserve variable length

I'm interested in applying genetic algorithm using DEAP in Python. An example implementation for knapasack can be seen here. I'm trying to create my own crossover function, and I want to preserve the lengths of the parents as follows: #…
meraxes
  • 541
  • 10
  • 23
0
votes
1 answer

Chromosome representation in GA and DEAP

I'm new to DEAP, and i want to represent my chromosome as a set of features which will be tested by SVM classifier, my problem now is how to represent my 35 features in the chromosome
Mbologna
  • 9
  • 1
0
votes
1 answer

How to create three mutually exclusive subsets of a population using DEAP

I am using Python and the DEAP Genetic programming libraries. I have a population set, but I need to create three mutually exclusive and collectively exhaustive subsets of my population. Is this supported by DEAP itself or do I need to create…
fossl
  • 67
  • 1
  • 9
0
votes
0 answers

multiprocessing: processing a large dataset

I am working with DEAP. I am evaluating a population (currently 50 individuals) against a large dataset (400.000 columns of 200 floating points). I have successfully tested the algorithm without any multiprocessing. Execution time is about…
Bruno Hanzen
  • 351
  • 1
  • 2
  • 7
-1
votes
1 answer

Sympy changes the random seed

I am working on a python 3 project where I use deap and sympy. I set the seed to a fixed value after I imported the random module in the main file.py that I execute in order to have a reproductible code. but then I found out that I do not obtain the…
AnassBou
  • 21
  • 4
-1
votes
1 answer

Install Deap for Python (Spyder)

How should I install deap package for python from spyder? I have tried: pip install deal import deap deap.download()
anitasp
  • 577
  • 4
  • 13
  • 35
1 2 3
11
12