Get a hands-on introduction to machine learning with genetic algorithms using Python. 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 problems that you can fall back upon when learning to use other machine learning tools and techniques.
Each chapter begins with a project which you are encouraged to try to implement on your own before working through one possible implementation, and related pitfalls, with the author. This helps to build your skills at using genetic algorithms and prepares you to solve problems in your own field of expertise. The projects start with Hello World! then progress toward optimizing one genetic algorithm with another, and finally genetic programming. The following topics are introduced just-in-time: different ways to determine fitness, handling competing goals, phenotypes and genotypes, mutation options, memetic algorithms, local minimums and maximums, simulated annealing, branch and bound, variable length chromosomes, crossover, tuning genetic algorithms, symbolic genetic programming, automatically defined functions, hill climbing, chromosome repair, and tournament selection.
Python is used as the teaching language in this book because it is a high-level, low ceremony, and powerful language whose code can be easily understood even by entry-level programmers. Because Python is used for teaching, but is not being taught in this book, the use of Python-specific features that might make the code harder to follow for non-Python programmers has been minimized. This means that if you have experience with another programming language then you should have no difficulty using this book to learn about genetic algorithms while learning to at least read Python. Additionally, it should not be difficult for you to translate the working code used in this book to your favorite programming language on-the-fly, depending on the capabilities and support libraries available for your preferred language.
For a brief introduction to genetic algorithms and the writing style used in this book, use Amazon's Look Inside feature, or use your Kindle Unlimited subscription to try it out, or download the sample chapters linked from the Github repository associated with this book. The source code is made available under the Apache License, Version 2.0.
Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.
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 NxN. 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 way a gene is used depends on its position in the gene array.
Chapter 7: Knights Problem - Find the minimum number of knights required to attack all positions on a board. Introduces custom genes and gene-array creation. Also demonstrates local minimums and maximums.
Chapter 8: Magic Squares - Find squares where all the rows, columns and both diagonals of an NxN matrix have the same sum. Introduces simulated annealing.
Chapter 9: Knapsack Problem - Optimize the content of a container for one or more variables. Introduces branch and bound and variable length chromosomes.
Chapter 10: Solving Linear Equations - Find the solutions to linear equations with 2, 3 and 4 unknowns. Branch and bound variation. Reinforces genotype flexibility.
Chapter 11: Generating Sudoku - A guided exercise in generating Sudoku puzzles.
Chapter 12: Traveling Salesman Problem (TSP) - Find the optimal route to visit cities. Introduces crossover and a pool of parents.
Chapter 13: Approximating Pi - Find the two 10-bit numbers whose dividend is closest to Pi. Introduces using one genetic algorithm to tune another.
Chapter 14: Equation Generation - Find the shortest equation that produces a specific result using addition, subtraction, multiplication, etc. Introduces symbolic genetic programming.
Chapter 15: The Lawnmower Problem - Generate a series of instructions that cause a lawnmower to cut a field of grass. Genetic programming with control structures, objects and automatically defined functions (ADFs).
Chapter 16: Logic Circuits - Generate circuits that behave like basic gates, gate combinations and finally a 2-bit adder. Introduces tree nodes and hill climbing.
Chapter 17: Regular Expressions - Find regular expressions that match wanted strings. Introduces chromosome repair and growth control.
Chapter 18: Tic-tac-toe - Create rules for playing the game.
I am a polyglot programmer with more than 15 years of professional programming experience. When learning a new programming language, I start with a familiar problem and try to learn enough of the new language to solve it. For me, an engine for solving genetic algorithms is that familiar problem. Why? For one thing, it is a project where I can explore interesting puzzles, and where even a child's game like Tic-tac-toe can be viewed on a whole new level. Also, I can select increasingly complex puzzles to drive evolution in the capabilities of the engine. This allows me to discover the expressiveness of the language, the power of its tool chain, and the size of its development community as I work through the idiosyncrasies of the language.
„Über diesen Titel“ kann sich auf eine andere Ausgabe dieses Titels beziehen.
EUR 4,69 für den Versand von Vereinigtes Königreich nach Deutschland
Versandziele, Kosten & DauerGratis für den Versand innerhalb von/der Deutschland
Versandziele, Kosten & DauerAnbieter: WeBuyBooks, Rossendale, LANCS, Vereinigtes Königreich
Zustand: Very Good. Most items will be dispatched the same or the next working day. A copy that has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged. Bestandsnummer des Verkäufers rev1597122446
Anzahl: 1 verfügbar
Anbieter: moluna, Greven, Deutschland
Zustand: New. Dieser Artikel ist ein Print on Demand Artikel und wird nach Ihrer Bestellung fuer Sie gedruckt. Bestandsnummer des Verkäufers 596280996
Anzahl: Mehr als 20 verfügbar
Anbieter: Revaluation Books, Exeter, Vereinigtes Königreich
Paperback. Zustand: Brand New. 532 pages. 9.69x7.44x1.20 inches. This item is printed on demand. Bestandsnummer des Verkäufers zk1540324001
Anzahl: 1 verfügbar
Anbieter: Libreria Hispano Americana, Barcelona, BARCE, Spanien
Encuadernación de tapa blanda. Zustand: Como Nuevo. Zustand des Schutzumschlags: Como Nuevo. 1ª Edición. Bestandsnummer des Verkäufers 92¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
Anzahl: 1 verfügbar
Anbieter: Vashon Island Books, Vashon, WA, USA
Paperback. Zustand: Very Good. First Paperback Edition. Size: 4to - over 9¾" - 12" tall. Book. Bestandsnummer des Verkäufers 0836059
Anzahl: 1 verfügbar
Anbieter: Broad Street Books, Branchville, NJ, USA
paperback. Zustand: New. Brand New Book. Bestandsnummer des Verkäufers f13565
Anzahl: 1 verfügbar
Anbieter: Big River Books, Powder Springs, GA, USA
Zustand: good. This book is in good condition. The cover has minor creases or bends. The binding is tight and pages are intact. Some pages may have writing or highlighting. Bestandsnummer des Verkäufers BRV.1540324001.G
Anzahl: 1 verfügbar
Anbieter: Aragon Books Canada, OTTAWA, ON, Kanada
Paperback. Zustand: New. Bestandsnummer des Verkäufers QCAF--0169
Anzahl: 1 verfügbar
Anbieter: HPB-Red, Dallas, TX, USA
Paperback. Zustand: Good. Connecting readers with great books since 1972! Used textbooks may not include companion materials such as access codes, etc. May have some wear or writing/highlighting. We ship orders daily and Customer Service is our top priority! Bestandsnummer des Verkäufers S_311677574
Anzahl: 1 verfügbar