Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Hands-On Genetic Algorithms with Python
  • Table Of Contents Toc
Hands-On Genetic Algorithms with Python

Hands-On Genetic Algorithms with Python - Second Edition

By : Eyal Wirsansky
4.8 (5)
close
close
Hands-On Genetic Algorithms with Python

Hands-On Genetic Algorithms with Python

4.8 (5)
By: Eyal Wirsansky

Overview of this book

Written by Eyal Wirsansky, a senior data scientist and AI researcher with over 25 years of experience and a research background in genetic algorithms and neural networks, Hands-On Genetic Algorithms with Python offers expert insights and practical knowledge to master genetic algorithms. After an introduction to genetic algorithms and their principles of operation, you’ll find out how they differ from traditional algorithms and the types of problems they can solve, followed by applying them to search and optimization tasks such as planning, scheduling, gaming, and analytics. As you progress, you’ll delve into explainable AI and apply genetic algorithms to AI to improve machine learning and deep learning models, as well as tackle reinforcement learning and NLP tasks. This updated second edition further expands on applying genetic algorithms to NLP and XAI and speeding up genetic algorithms with concurrency and cloud computing. You’ll also get to grips with the NEAT algorithm. The book concludes with an image reconstruction project and other related technologies for future applications. By the end of this book, you’ll have gained hands-on experience in applying genetic algorithms across a variety of fields, with emphasis on artificial intelligence with Python.
Table of Contents (24 chapters)
close
close
Lock Free Chapter
1
Part 1: The Basics of Genetic Algorithms
4
Part 2: Solving Problems with Genetic Algorithms
9
Part 3: Artificial Intelligence Applications of Genetic Algorithms
16
Part 4: Enhancing Performance with Concurrency and Cloud Strategies
19
Part 5: Related Technologies

Multiprocessing using the Pool class

In Python, the multiprocessing.Pool module provides a convenient mechanism to parallelize operations across multiple processes. With the Pool class, a pool of worker processes is created, allowing tasks to be distributed among them.

The Pool class abstracts away the details of managing individual processes by providing the map and apply methods. Conversely, the DEAP framework makes it very easy to utilize this abstraction. All operations specified in the toolbox module are internally executed via a default map function. Replacing this map with the map from the Pool class means that these operations, including fitness evaluations, are now distributed among the worker processes in the pool.

Let’s illustrate this by incorporating multiprocessing into our previous program. This modification is implemented in the 03_one_max_pool.py Python program, available at https://github.com/PacktPublishing/Hands-On-Genetic-Algorithms-with-Python-Second...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Hands-On Genetic Algorithms with Python
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon