파이썬 인공지능 코드

2011.08.21 18:46

가을의 곰을... 조회 수:8973

Artificial Intelligence: A Modern Approach

AIMA Python Code

[출처] http://aima.cs.berkeley.edu/python/readme.html

경축! 아무것도 안하여 에스천사게임즈가 새로운 모습으로 재오픈 하였습니다.
어린이용이며, 설치가 필요없는 브라우저 게임입니다.
https://s1004games.com

This file gives an overview of the Python code for the algorithms in the textbook AI: A Modern Approach. The code is Copyright (c) 2002 by Peter Norvig and is offered free of charge for your use. As you may know, the textbook presents algorithms in pseudo-code format; as a supplement we provide this Python code as well as Lisp code. The intent is to implement all the algorithms in both languages, so that you can choose whichever language you prefer. As yet neither implementation is complete, but the Lisp version is closer.

Installation Instructions

Here is how to download the files and make them ready for use. You only need to do this once, and if you are taking a course, your instructor may have set this up for you.
  1. Create a directory where you want the code to reside on your local machine. You can call this whatever you want; we'll call it home.
  2. Get the data.zip, store it in home file and unzip it. Your browser may unzip automatically, or you can give the command "unzip aima-python.zip" or drag the file to your zip program icon. In the end, just make sure you have files in the directory home/data.
  3. Download the file aima-python.zip into home.
  4. Unzip it, creating files in home/python.
  5. You must have Python (version 2.2 or later) installed. 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.
  6. Make sure that home/python is in your module search path. You do this either by always starting Python from the directory where you keep the files, or by editing the environment variable PYTHONPATH.
  7. Test the code. There are unit tests interspersed in the code. They follow the Python doctest conventions and can be run with the command line "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."

User's Guide

Once you have the files installed, you can use them in several ways.
  • Read the code. This can enhance your understanding of the algorithms, and clarify parts that were not spelled out in the book's pseudo-code.
  • Run the existing code on your own data. For the module(s) you want, do "import module" and then run the functions you want on the data you want.
  • Experiment with extending the code.

Code File Summary

You can
  • Browse through the python/ directory to see all the files.
  • Look at the .txt files to see some unit tests (doctests) and their expected output.
  • See the code repository index to see what functions and data types are available, and how they map to the pseudocode figures in the book.
The following table lists the code files (modules), the chapters in the book to which they refer, the number of lines of code in each file, and a brief description of each file. Each module name links to a pretty, colorized version of the Python source code, and the Files column lists the original .py file and (in some cases) a .txt file of doctests.

Chapter Module Files Lines Description
1-2 agents .py 532 Implement Agents and Environments (Chapters 1-2).
3-4 search .py .txt 735 Search (Chapters 3-4)
5 csp .py .txt 449 CSP (Constraint Satisfaction Problems) problems and solvers. (Chapter 5).
6 games .py 285 Games, or Adversarial Search. (Chapters 6)
7-10 logic .py .txt 887 Representations and Inference for Logic (Chapters 7-10)
11-12 planning .py 6 Planning (Chapters 11-12)
13-15 probability .py .txt 170 Probability models. (Chapter 13-15)
17 mdp .py .txt 141 Markov Decision Processes (Chapter 17)
18-20 learning .py 585 Learn to estimate functions from examples. (Chapters 18-20)
21 rl .py 14 Reinforcement Learning (Chapter 21)
22 nlp .py .txt 169 A chart parser and some grammars. (Chapter 22)
23 text .py .txt 364 Statistical Language Processing tools. (Chapter 23)
doctests .py .txt 42 Run all doctests from modules on the command line. For each
py2html .py 109 Pretty-print Python code to colorized, hyperlinked html.
utils .py .txt 713 Provide some widely useful utilities. Safe for "from utils import *".
5201

Developer's Guide

If you'd like to contribute to this project, we could really use the help. Read the guidelines and then let me know what you'd like to contribute.

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.

AI: A Modern Approach by Stuart Russell and Peter Norvig Modified: Jul 18, 2005
본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
71 특허 등록 절차 가을의 곰을... 2011.11.17 7811
70 특허/실용신안 출원 절차 가을의 곰을... 2011.11.17 7073
69 URL Rewrite : 동적 URL 지정 : creating Dynamic URL 가을의 곰을... 2011.11.16 10520
68 자바에서 x86 어셈블리로 프로그래밍: x86 Assembly Programming in Java Platform 가을의 곰을... 2011.11.15 20535
67 XCode 간단 설치와 사용법 - Objective-C의 예제 개발하기 file 가을의 곰을... 2011.11.13 10727
66 Android : Source Code Overview 가을의 곰을... 2011.11.10 10041
65 Java Spring 2.0 Web 예제(Hello World) file 가을의 곰을... 2011.11.09 7726
64 kernel.org가 아닌 구글에서 안드로이드 소스 다운로드 및 빌드 가을의 곰을... 2011.11.07 10169
63 spring + iBatis 연동하기 가을의 곰을... 2011.11.02 8004
62 스프링 - 아이바티스 연동 가을의 곰을... 2011.11.02 7972
61 Spring 3 MVC Hello World Example file 가을의 곰을... 2011.11.01 14983
60 문서작성의 기술 가을의 곰을... 2011.10.31 7136
59 [JSP/JAVA] 최상위, 파일 경로 알아내기 가을의 곰을... 2011.10.26 10308
58 오픈소스 강의 (Lecture of OpenSource) 가을의 곰을... 2011.10.14 6553
57 우분투 10.10(64bit)에서 안드로이드 소스(Gingerbread) 빌드하기 가을의 곰을... 2011.10.06 12044
56 스타벅스에서 Arduino 개발 연습하기..... file 가을의 곰을... 2011.09.25 10476
» 파이썬 인공지능 코드 가을의 곰을... 2011.08.21 8973
54 JSP: 개발환경 구축 JSP: 톰캣 + MySQL + 이클립스, 개발환경 구축 file 가을의 곰을... 2011.08.21 8003
53 Importing projects from NetBeans to Eclipse file 가을의 곰을... 2011.07.04 9075
52 미국 대학교 인터넷 오픈 강좌 50 가을의 곰을... 2011.06.05 7038
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED