파이썬 인공지능 코드

2011.08.21 18:46

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

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
본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
58 오픈소스 강의 (Lecture of OpenSource) 가을의 곰을... 2011.10.14 6713
57 우분투 10.10(64bit)에서 안드로이드 소스(Gingerbread) 빌드하기 가을의 곰을... 2011.10.06 12106
56 스타벅스에서 Arduino 개발 연습하기..... file 가을의 곰을... 2011.09.25 10566
» 파이썬 인공지능 코드 가을의 곰을... 2011.08.21 9056
54 JSP: 개발환경 구축 JSP: 톰캣 + MySQL + 이클립스, 개발환경 구축 file 가을의 곰을... 2011.08.21 8069
53 Importing projects from NetBeans to Eclipse file 가을의 곰을... 2011.07.04 9139
52 미국 대학교 인터넷 오픈 강좌 50 가을의 곰을... 2011.06.05 7105
51 Java GUI 프로그래밍 가을의 곰을... 2011.06.05 15805
50 정보처리기술사 학습관련 사이트 가을의 곰을... 2011.06.04 9426
49 [GMP] 2011.05.14-21 Today's Word file 가을의 곰을... 2011.05.14 9024
48 Sockets Tutorial 가을의 곰을... 2011.04.24 4680
47 Tkinter GUI 프로그래밍 가을의 곰을... 2011.04.24 10557
46 Tkinter로 생각하기 가을의 곰을... 2011.04.24 6045
45 TKinter 요약 가을의 곰을... 2011.04.24 7318
44 기술사 합격시 혜텍 가을의 곰을... 2011.02.14 10353
43 삼성블로그 추천의 독서법 가을의 곰을... 2011.01.17 9349
42 [알아봅시다] 이통사들의 모바일 트래픽 해법 file 가을의 곰을... 2010.10.31 10144
41 perl 프로그래밍 개요 가을의 곰을... 2010.10.15 9315
40 SQL 로더 사용법 file 가을의 곰을... 2010.10.12 9737
39 소스인사이트 단축키 (2) 가을의 곰을... 2010.10.11 17101
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED