Genetic Algorithms with Python, Paperback/Clinton Sheppard
Descriere
Description Get a hands-on introduction to machine learning with genetic algorithms using Python. Step-by-step tutorials build your skills from Hello World to optimizing one genetic algorithm with another, and finally genetic programming; thus preparing you to apply genetic algorithms to problems in your own field of expertise. Genetic algorithms are one of the tools you can use to apply machine learning to finding good, sometimes even optimal, solutions to problems that have billions of potential solutions. This book gives you experience making genetic algorithms work for you, using easy-to-follow example projects that you can fall back upon when learning to use other machine learning tools and techniques. Each chapter is a step-by-step tutorial that helps to build your skills at using genetic algorithms to solve problems using Python. Python is a high-level, low ceremony and powerful language whose code can be easily understood even by entry-level programmers. If you have experience with another programming language then you should have no difficulty learning Python by induction. Contents Chapter 1: Hello World - Guess a password given the number of correct letters in the guess. Build a mutation engine. Chapter 2: One Max Problem - Produce an array of bits where all are 1s. Expands the engine to work with any type of gene. Chapter 3: Sorted Numbers - Produce a sorted integer array. Demonstrates handling multiple fitness goals and constraints between genes. Chapter 4: The 8 Queens Puzzle - Find safe Queen positions on an 8x8 board and then expand to Nx N. Demonstrates the difference between phenotype and genotype. Chapter 5: Graph Coloring - Color a map of the United States using only 4 colors. Introduces standard data sets and working with files. Also introduces using rules to work with gene constraints. Chapter 6: Card Problem - More gene constraints. Introduces custom mutation, memetic algorithms, and the sum-of-difference technique. Also demonstrates a chromosome where the