Share E-Book

Practical Artificial Intelligence in Julia Implementing Neural Networks, Genetic Algorithms, and Neuroevolution in Julia (Alexandre Bergel)(Z-Library)

Author Alexandre Bergel

algorithm
Language English

Practical Artificial Intelligence in Julia aims to provide a practical foundation for a set of expressive artificial intelligence algorithms using the Julia programming language. The book makes two large contributions to existing related books. The first contribution details some expressive techniques, namely, neural networks, genetic algorithms, and neuroevolution. No other books comprehensively relate to these topics by providing a full Julia implementation. The book provides material in an incremental fashion, beginning with a little perceptron and ending with a full implementation of two algorithms for neuroevolution. The second contribution is to provide a set of compelling, non-trivial, and self-contained applications of these techniques, including AI for a platform game and a computational model of evolving walking creatures.

Format EPUB
Size 3.1 MB
12
Views
0
Downloads
0.00
Total Donations

AI Guide

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Full assistant
AI guide
【One-Line Pitch】 A hands-on, code-first guide that teaches you to build neural networks, genetic algorithms, and neuroevolution from scratch in Julia, culminating in an AI that plays a platform game and creatures that learn to walk—ideal for programmers who want to understand AI by implementing it, not just calling an API. 【Book Arc】 - **Opening (~0%–9%)**: Introduces the book's mission—building your own AI toolkit in Julia rather than relying on external libraries—and outlines the three-part structure: neural networks, genetic algorithms, and neuroevolution. It sets expectations for an incremental, self-contained approach with executable code. - **Early (~9%–28%)**: Lays the groundwork with the perceptron model, the simplest neural unit. You implement a single neuron, test it with logical gates (AND, OR, NOR), and learn why a solid, testable foundation matters before scaling to networks. The table of contents previews later topics like the Traveling Salesman Problem and walking creatures. - **Middle (~28%–47%)**: Deepens the neural network part with training, precision measurement, and 2D point classification. Emphasis is on unit testing and maintainable code, showing how to evolve the perceptron into a full network framework. This section also introduces genetic algorithms conceptually, framing them as fitness-function optimizers that don't require knowing the solution's shape in advance. - **Late (~47%–53%)**: Bridges into genetic algorithms with concrete examples: logical gate combinations, the knapsack problem, meeting room scheduling, and mini Sudoku. The book stresses exploration vs. exploitation and adaptive mutation strategies, then moves to the Traveling Salesman Problem with custom genetic operations like swap mutation and ordered crossover. - **Ending (~53%–100%)**: Covers the final two parts: building and evolving walking creatures (an artificial life simulation with joints, muscles, and platforms) and neuroevolution. The neuroevolution section explains two techniques—NeuroGenetic and NEAT—and applies them to a platform video game, creating an artificial player. The book ends with serialization, visualization, and practical tips for evolving networks. 【Key Takeaways】 - **Build your own AI API, don't just use one** (Early): The book's core philosophy is that implementing algorithms yourself gives you tunability and malleability that external libraries can't offer. This is a major differentiator from typical AI books. - **The perceptron is the foundation of everything** (Early): You start with a single neuron—inputs, weights, bias, and a threshold—and learn to express logical gates like AND, OR, and NOR. This simple model is the building block for all later networks. - **Testing is non-negotiable, even for small components** (Middle): The book repeatedly emphasizes unit testing with Julia's `Test` module. Writing tests for your perceptron ensures that later improvements don't break existing functionality, which is crucial as the codebase grows. - **Genetic algorithms solve problems without knowing the solution's shape** (Middle): Unlike gradient-based methods, GAs optimize a fitness function using biologically inspired operators. If you can compare two candidate solutions, you can apply a GA—this is a powerful and expressive search technique. - **Neuroevolution combines GAs and neural networks** (Late): Instead of training a network with backpropagation, neuroevolution starts with simple networks and evolves their topology and weights. This approach can solve tasks that are hard for classical deep learning, like finding network architecture without gradients. - **Real-world applications make the theory concrete** (Late): The book's standout examples—evolving walking creatures and building an AI for a platform game—show how to apply these techniques to non-trivial, self-contained problems. These are not toy examples but complete simulations. - **The book is intentionally shallow on advanced neural networks** (Early): It does not cover convolution, transformers, or language models. The neural network material is a foundation for neuroevolution, not a deep dive into modern deep learning architectures. 【Reading Tips】 - **Skim the first part if you know basic neural networks**: Chapters 1–3 on the perceptron and training are essential for beginners, but if you're familiar with the concepts, focus on the Julia implementation details and testing practices rather than the theory. - **Deep-read the genetic algorithm chapters**: Chapters 7–10 (knapsack, Traveling Salesman, walking creatures) are where the book shines. Pay close attention to the custom genetic operations (swap mutation, ordered crossover) and the "competing conventions" problem in evolving creatures. - **Treat the code as a companion, not a reference**: The book provides full Julia implementations on GitHub. Run the code as you read, especially the unit tests, to see how each piece fits together. The `all.jl` script may not work for all chapters, so follow the chapter-specific files. - **Don't skip the neuroevolution part if you're interested in modern AI**: Chapters 11–14 cover NeuroGenetic and NEAT, which are less common in introductory books. The platform game example is a rewarding capstone that ties everything together. - **Be prepared for a mild math background in some chapters**: The book says most chapters need no math, but a few do. These are self-contained, so you can skip them without losing the thread of the overall narrative. 【Coverage Limits】 This guide is based on the book's preface, table of contents, and early chapters (up to ~53%). It does not cover the detailed implementations of later chapters, including the full NEAT algorithm, the platform game code, or the walking creature evolution specifics.

Passage locations

Excerpt 1
or dissimilar methodology now known or hereafter developed. The use of general descriptive names, registered names, trademarks, service marks, etc. in this p...
View in text
Excerpt 2
invited to refer to dedicated books to deepen these topics. The neural network material is provided as a foundation to build the neuroevolution algorithm. Th...
View in text
Excerpt 3
e in Pharo , Agile Visualization , and Deep into Pharo .   Practical Artificial Intelligence in Julia About the Technical Reviewer Stefania Loredana Nita PhD...
View in text
Excerpt 4
tests, even for a small component such as our Neuron class. Formulating Logical Expressions A canonical example of using a perceptron is to model boolean log...
View in text

Recommended for You

Loading recommended books...
Failed to load, please try again later

Tip the Site

Scan the WeChat Pay or Alipay code to tip. No login required.

WeChat Pay
Alipay
Back to List