# 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.
Raw data
{
"_id": null,
"home_page": "https://gitlab.com/tangibleai/community/aima",
"name": "aima",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<3.10",
"maintainer_email": "",
"keywords": "AI,Artificial Intelligence,Artificial Intelligence a Modern Approach,NLP,Natural Language Processing,Virtual Assistant,chatbot,agent,Text Processing,Machine Learning",
"author": "Peter Norvig (norvig)",
"author_email": "peter.norvig@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/8d/f7/2ad0758fa88223b53f187376981dca68ab7620b93be540fd8cf4bbbefb94/aima-2023.2.6.tar.gz",
"platform": null,
"description": "# Introduction\n\nCode for Artificial Intelligence: A Modern Approach (AIMA) 4th edition by Peter Norvig and Stuart Russel.\n\nShameless reuse of Norvig's official repository at https://github.com/aimacode/aima-python/ \n\nThe code should work in Python 3.7+.\n\n# How to Browse the Code\n\nYou 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.\n\n# How to Install the Code\n\nIf you like what you see, install the code using either one of these methods:\n\nFrom 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).\nDownload 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.\n\nYou'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.\n\nYou 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.\n\n# How to Test the Code\n\nFirst, 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.\n\nIn the aima-python directory, execute the command\n\n python doctests.py -v *.py\n\nThe \"-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.\"\n\n# How to Run the Code\n\nYou're on your own -- experiment! Create a new python file, import the modules you need, and call the functions you want.\n\n# Acknowledgements\n\nMany 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.\n",
"bugtrack_url": null,
"license": "AGPL3",
"summary": "Artificial Intelligence a Modern Approach 4th Ed by Peter Norvig and Stuart Russel",
"version": "2023.2.6",
"split_keywords": [
"ai",
"artificial intelligence",
"artificial intelligence a modern approach",
"nlp",
"natural language processing",
"virtual assistant",
"chatbot",
"agent",
"text processing",
"machine learning"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c67c9ca65ec0a581d5757c13529c60c21179c3c70458c1b3a50974ff2f4e9f76",
"md5": "4cc85801422c1c7b9e9bb696790cc4eb",
"sha256": "d542da38f7258f88f6c175881958727a5046f484b2b4674b25a3654d677c584f"
},
"downloads": -1,
"filename": "aima-2023.2.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4cc85801422c1c7b9e9bb696790cc4eb",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<3.10",
"size": 348080,
"upload_time": "2023-02-07T22:05:58",
"upload_time_iso_8601": "2023-02-07T22:05:58.780473Z",
"url": "https://files.pythonhosted.org/packages/c6/7c/9ca65ec0a581d5757c13529c60c21179c3c70458c1b3a50974ff2f4e9f76/aima-2023.2.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8df72ad0758fa88223b53f187376981dca68ab7620b93be540fd8cf4bbbefb94",
"md5": "8a55f9e560f182745c76def19ee7225b",
"sha256": "d71e44458a7718b30b32a487aa0106f3d27e409c50d9583e03ced72d31a735a6"
},
"downloads": -1,
"filename": "aima-2023.2.6.tar.gz",
"has_sig": false,
"md5_digest": "8a55f9e560f182745c76def19ee7225b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<3.10",
"size": 308374,
"upload_time": "2023-02-07T22:06:01",
"upload_time_iso_8601": "2023-02-07T22:06:01.165135Z",
"url": "https://files.pythonhosted.org/packages/8d/f7/2ad0758fa88223b53f187376981dca68ab7620b93be540fd8cf4bbbefb94/aima-2023.2.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-07 22:06:01",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "aima"
}