Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
77 views

How can I choose particular ranges of gene number in mutation function of DEAP?

I would like to ask what should I do if my Mat (the first gene of the chromosome) is only 0 and 2 (not 1)? Following is the code: tools.mutUniformInt(low=[Mat_min, 0, Span_min, Span_min], up=[Mat_max, ...
user17497858's user avatar
1 vote
1 answer
1k views

TypeError with Python DEAP mutFlipBit

I'm writing my first evolutionary algorithm with DEAP. Everything is working, but the MultiFlipBit mutation operator. When I attempt to mutate a Tree (Individual), I get the following error: File "...
InterceptK's user avatar