January 2020
Intermediate to advanced
346 pages
9h 8m
English
When solving discrete search problems, the DEAP framework can be used for optimizing continuous functions in a very similar manner to what we have seen so far. All that's needed are a few subtle modifications.
For the chromosome encoding, we can use a list (or array) of floating-point numbers. One thing to keep in mind, though, is that the existing genetic operators of DEAP will not work well with individual objects extending the numpy.ndarray class due to the way these objects are being sliced, as well as the way they are being compared to each other. Using numpy.ndarray-based individuals will require redefining the genetic operators accordingly. This is further covered in the DEAP documentation, under ...
Read now
Unlock full access