Introduction
Code for Artificial Intelligence: A Modern Approach (AIMA) 4th edition by Peter Norvig and Stuart Russel.
Shameless reuse of Norvig's official repository at https://github.com/aimacode/aima-python/
The code should work in Python 3.9 and Python 3.10. Not yet tested with Python 3.11, 3.12, or 3.13.
Browse
You can get some use out of the code here just by browsing, starting at the root of the source tree or by clicking on the links in the index on the project home page. The source code is in the .py files; the .txt files give examples of how to use the code.
Installation
Linux
git clone git@gitlab.com:tangibleai/inactive/aima
cd aima
python3.10 -m venv .venv
source .venv/bin/activate
pip install -e .
Mac
- install XCode
- use Linux instructions above
Windows
- install git-bash or WSL
- use Linux instruction above
Testing
In the aima/ directory, execute the command
python doctests.py -v *.py
Run the Code
You're on your own -- experiment! Read the book, create a new python file, import the modules you need, and call the functions you want!
Acknowledgements
Norvig and the aima-python contibutors: Many thanks for the bug reports, corrected code, and other support from Phil Ruggera, Peng Shao, Amit Patil, Ted Nienstedt, Jim Martin, Ben Catanzariti, and others.
Metadata
Release files for aima 2024.9.28
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aima-2024.9.28.tar.gz | 309.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aima-2024.9.28-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 671.4 kB
Release files / aima-2024.9.28.tar.gz
| Download URL | aima-2024.9.28.tar.gz |
|---|---|
| Size | 309.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2e9cf4247492a38b1f98e2be210837bec4a7a9d47098d2a049ff6631bf37176
|
|
BLAKE2b-256 checksum How to use checksums |
d005a7248858adfc2045451d930e414d5b75a3966c401c716e747443b5a8e35e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / aima-2024.9.28-py3-none-any.whl
| Download URL | aima-2024.9.28-py3-none-any.whl |
|---|---|
| Size | 361.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
56945b0b46cef43bae41e23f75fd296b3e361da594263780c5a5a9608509541b
|
|
BLAKE2b-256 checksum How to use checksums |
36d3265810f15cf021c717ddaca7a9cd1b1c3d202c8524702a0472fccb75fa15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for aima 2024.9.28
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.