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

Solving the MountainCar environment

The MountainCar-v0 environment simulates a car on a one-dimensional track, situated between two hills. The simulation starts with the car placed between the hills, as shown in the following rendered output:

Figure 10.2: The MountainCar simulation – the starting point

Figure 10.2: The MountainCar simulation – the starting point

The goal is to get the car to climb up the taller hill – the one on the right – and ultimately hit the flag:

Figure 10.3: The MountainCar simulation – the car climbing the hill on the right

Figure 10.3: The MountainCar simulation – the car climbing the hill on the right

The simulation is set up with the car’s engine being too weak to directly climb the taller hill. The only way to reach the goal is to drive the car back and forth until enough momentum is built for climbing. Climbing the left hill can help to achieve this goal, as reaching the left peak will bounce the car back to the right, as shown in the following screenshot:

Figure 10.4: The MountainCar simulation – the car bouncing off the hill on the left

Figure 10.4: The...

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