aimacode/aima-python
Tentang
Implementasi Python untuk algoritme dari “Artificial Intelligence: A Modern Approach” karya Russell dan Norvig
AI dan pembelajaran mesinPertumbuhan bintang terukur
- dalam 24 jam
- +1
- dalam 7 hari
- +8
- dalam 15 hari
- +19
- dalam 1 bulan
- +29
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asliaima-python

Python code for the book Artificial Intelligence: A Modern Approach.
Installation
The code targets the 4th edition of the book and runs on Python 3.11 and up; the CI runs the tests on 3.11 and 3.12, since some optional dependencies (tensorflow, keras, opencv-python) do not yet ship wheels for 3.13+. Clone the repository together with the aima-data submodule (the datasets), install the package aima and its dependencies, and run the tests:
git clone --recurse-submodules https://github.com/aimacode/aima-python.git
cd aima-python
pip install -e .
pip install pytest
pytest
In an existing clone, git submodule update --init fetches the datasets. The algorithms are then imported from the package, e.g., from aima.search import astar_search, and python -i -m aima.search opens an interactive session on one module. A couple of notebooks also need the Graphviz binary dot (e.g., apt install graphviz or brew install graphviz), since the graphviz package on PyPI is only a wrapper.
Notebooks
The folder notebooks/ holds the Jupyter notebooks that explain and demonstrate the code, one per topic plus the per-chapter demos in notebooks/chapterNN/; each starts with %run bootstrap.ipynb, which puts the repository root on sys.path. Each notebook has a jupytext .py mirror, regenerated by the workflow notebooks-to-py.yml (see CONTRIBUTING.md). The notebooks also run in Binder, and those of most chapters run in the browser, with no installation, through JupyterLite (see lite/README.md).
Index of algorithms
The table has one row per algorithm, in the order of the book, and the same rows in all the aimacode repositories. The column Figure gives the figure of the 4th edition or, followed by "(3e)", the one of the 3rd edition when the pseudocode of the algorithm is only there; § gives the section of the 4th edition of an algorithm described in the text, and — marks an algorithm that is not in the book. The names link to the pseudocode in aima-pseudocode.
Data structures
Exercises
This table lists the exercises of aima-exercises whose answer a program can check, with the same tests in all the repositories; the chapters are those of the 3rd edition, as on that site.
Other code in this repository
| Name | Code | Tests |
|---|---|---|
| Australia map | australia_map |
test_search.py |
| Wumpus world KB | wumpus_world_inference |
test_logic.py |
| Horn clauses KB | horn_clauses_KB |
test_logic.py |
Contributing
See CONTRIBUTING.md.
Authors
In order of the lines they wrote in the current files: Donato Meoli, Aman Deep Singh, Antonis Maronikolakis, Tianqi Yang, Marianna Spyrakou, Tarun Kumar Vangani, Peter Norvig, C.G. Vedant, Nouman Ahmed, Apurv Bajaj, Surya Teja Cheedella; see also all the contributors.
I also thank, for their earlier contributions, Darius Bacon, Lucas Moura, Mirco Tracolli, Phil Ruggera, Peng Shao, Amit Patil, Ted Nienstedt, Jim Martin and Ben Catanzariti.
Other aimacode projects
aima-java · aima-csharp · aima-scala · aima-julia · aima-lisp · aima-javascript · aima-pseudocode · aima-exercises · aima-data · aima-glossary
Jelajahi proyek terkait
Memuat…