You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-22Lines changed: 28 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Grokking Artificial Intelligence Algorithms
1
+
# Grokking AI Algorithms
2
2
3
3
[Get Grokking Artificial Intelligence Algorithms at Manning Publications](https://www.manning.com/books/grokking-artificial-intelligence-algorithms?a_aid=gaia&a_bid=6a1b836a)
4
4
@@ -7,30 +7,37 @@ Rather Learn by exploring the code notebook in your browser? Click here:
7
7
[](https://colab.research.google.com/github/rishal-hurbans/Grokking-Artificial-Intelligence-Algorithms-Notebook/blob/main/Grokking_Artificial_Intelligence_Algorithms_Notebook.ipynb)
8
8
9
9
## Requirements
10
-
* Python 3.7.0+
11
-
* Pip 3
10
+
* Python 3.9 or later (3.11 recommended)
11
+
* pip 23.1+ (comes with recent Python installers)
12
+
* Optional: PyTorch-compatible GPU for the heavy demos in Chapters 11–12
12
13
13
14
## Setup
14
-
Make sure that you have Python 3.7.0+ installed. [Download Python here](https://www.python.org/downloads/).
15
-
pip3 should be installed with Python 3.7.0+ on macOS and Windows. You may need to install pip3 seperately if you're using Linux.
16
-
Use the ```sudo apt-get install python3-pip``` command if you're using Ubuntu or Debian Linux.
17
-
Use the ```sudo yum install python3-pip``` command if you're using Fedora Linux.
18
-
19
-
Clone this repository.
20
-
21
-
Navigate to the directory that contains the repository using terminal/console/command line.
22
-
23
-
Run this command to install the dependency libraries required.
24
-
25
-
```pip3 install -r requirements.txt```
26
-
27
-
Navigate to the directory containing the example that you want to run, and run this command.
28
-
29
-
```python3 <file_name.py>```
30
-
15
+
1.**Install Python** – download the latest 3.x release from [python.org](https://www.python.org/downloads/) or use your platform package manager. Ensure `python` and `pip` point to the same interpreter (`python -m pip --version`).
16
+
2.**Create a virtual environment** (recommended so project dependencies stay isolated):
17
+
* macOS / Linux:
18
+
```bash
19
+
python3 -m venv .venv
20
+
source .venv/bin/activate
21
+
```
22
+
* Windows (PowerShell):
23
+
```powershell
24
+
py -3 -m venv .venv
25
+
.\.venv\Scripts\Activate.ps1
26
+
```
27
+
3. **Install dependencies**:
28
+
```bash
29
+
pip install --upgrade pip
30
+
pip install -r requirements.txt
31
+
```
32
+
*PyTorch wheels are large; on Apple Silicon use the `arm64` build from `pip` or follow the [official instructions](https://pytorch.org/get-started/locally/) if you need CUDA support.*
33
+
4. **Run an example** by moving into the chapter directory and executing the script:
34
+
```bash
35
+
cd ch03-intelligent_search/informed_search
36
+
python3 maze_astar.py
37
+
```
31
38
32
39
## Overview
33
-
This is the official supporting code for the book, Grokking Artificial Intelligence Algorithms, published by Manning Publications, authored by Rishal Hurbans.
40
+
This is the official supporting code for the book, Grokking AI Algorithms, published by Manning Publications, authored by Rishal Hurbans.
34
41
35
42

36
43
@@ -39,4 +46,3 @@ The example implementations provided will make more sense if you've read the boo
39
46
The purpose of this repository is to act as a practical reference for examples of how the algorithms mentioned in the book can be implemented.
40
47
This repository should not be consulted as the book is read page-by-page, but rather, when you're attempting to implement an algorithm or gain a more technical understanding from a programming perspective.
0 commit comments