Skip to main content

Artificial Intelligence a Modern Approach 4th Ed by Peter Norvig and Stuart Russel

Project description

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.7+.

How to Browse the Code

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.

How to Install the Code

If you like what you see, install the code using either one of these methods:

From a command shell on your computer, execute the svn checkout command given on the source tab of the project. This assumes you have previously installed the version control system Subversion (svn). Download and unzip the zip file listed as a "Featured download"on the right hand side of the project home page. This is currently (Oct 2011) long out of date; we mean to make a new .zip when the svn checkout settles down.

You'll also need to install the data files from the aima-data project. These are text files that are used by the tests in the aima-python project, and may be useful for yout own work.

You can put the code anywhere you want on your computer, but it should be in one directory (you might call it aima but you are free to use whatever name you want) with aima-python as a subdirectory that contains all the files from this project, and data as a parallel subdirectory that contains all the files from the aima-data project.

How to Test the Code

First, you need to install Python (version 2.5 through 2.7; parts of the code may work in other versions, but don't expect it to). Python comes preinstalled on most versions of Linux and Mac OS. Versions are also available for Windows, Solaris, and other operating systems. If your system does not have Python installed, you can download and install it for free.

In the aima-python directory, execute the command

python doctests.py -v *.py

The "-v" is optional; it means "verbose". Various output is printed, but if all goes well there should be no instances of the word "Failure", nor of a long line of "". If you do use the "-v" option, the last line printed should be "Test passed."

How to Run the Code

You're on your own -- experiment! Create a new python file, import the modules you need, and call the functions you want.

Acknowledgements

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aima-2023.2.5.tar.gz (308.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aima-2023.2.5-py3-none-any.whl (348.1 kB view details)

Uploaded Python 3

File details

Details for the file aima-2023.2.5.tar.gz.

File metadata

  • Download URL: aima-2023.2.5.tar.gz
  • Upload date:
  • Size: 308.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.16 Linux/5.15.0-58-generic

File hashes

Hashes for aima-2023.2.5.tar.gz
Algorithm Hash digest
SHA256 a743e9b1651ecc0288bac6c48ae15fecb6fe672b5e22f3f838e8c632ab7fc6ed
MD5 11a7043a5031fbf97532888183c60e4b
BLAKE2b-256 0c8eb4b671dffab2f5532baf46e11ea05d72e8a342c2bcece60ee9b02ba18cf8

See more details on using hashes here.

File details

Details for the file aima-2023.2.5-py3-none-any.whl.

File metadata

  • Download URL: aima-2023.2.5-py3-none-any.whl
  • Upload date:
  • Size: 348.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.16 Linux/5.15.0-58-generic

File hashes

Hashes for aima-2023.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 949e9a10230027909e7b8e8c85061abade3eb320fc3ac52b441d3e2bfde4f2eb
MD5 9fb0ad4ab156312fd67091a43c3b5ed9
BLAKE2b-256 314947028f803d4224a81d96f9e9bcee44716f14987ed628f6ed2bf564ceb27b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page