Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Hands-On Genetic Algorithms with Python

You're reading from  Hands-On Genetic Algorithms with Python

Product type Book
Published in Jan 2020
Publisher Packt
ISBN-13 9781838557744
Pages 346 pages
Edition 1st Edition
Languages
Author (1):
Eyal Wirsansky Eyal Wirsansky
Profile icon Eyal Wirsansky

Table of Contents (18) Chapters

Preface 1. Section 1: The Basics of Genetic Algorithms
2. An Introduction to Genetic Algorithms 3. Understanding the Key Components of Genetic Algorithms 4. Section 2: Solving Problems with Genetic Algorithms
5. Using the DEAP Framework 6. Combinatorial Optimization 7. Constraint Satisfaction 8. Optimizing Continuous Functions 9. Section 3: Artificial Intelligence Applications of Genetic Algorithms
10. Enhancing Machine Learning Models Using Feature Selection 11. Hyperparameter Tuning of Machine Learning Models 12. Architecture Optimization of Deep Learning Networks 13. Reinforcement Learning with Genetic Algorithms 14. Section 4: Related Technologies
15. Genetic Image Reconstruction 16. Other Evolutionary and Bio-Inspired Computation Techniques 17. Other Books You May Enjoy

Using DEAP with continuous functions

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 Inheriting from NumPy. For this reason, as well as for performance reasons, ordinary Python lists or arrays of floating-point numbers...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}