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

AIMA Python Code

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."
  8. 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.

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

        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. <script> function hrefMark(){ } </script>
        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

본 웹사이트는 광고를 포함하고 있습니다.
광고 클릭에서 발생하는 수익금은 모두 웹사이트 서버의 유지 및 관리, 그리고 기술 콘텐츠 향상을 위해 쓰여집니다.
번호 제목 글쓴이 날짜 조회 수
27 자바로 구현하는 Web-to-web 프로그래밍, Part 1 가을의 곰을... 2011.08.21 10018
26 multipart/form-data를 지원하는 HttpRequestor의 구현 가을의 곰을... 2011.08.21 11889
25 리눅스 커널 컴파일 요지 가을의 곰을... 2011.04.28 19135
24 유닉스 쓰레드 프로그래밍 가을의 곰을... 2010.11.15 12630
23 Unix 개괄 file 가을의 곰을... 2010.10.21 13927
22 컴퓨터 자동종료 설정하기 file 가을의 곰을... 2010.10.15 24453
21 ACE Framework에 사용된 패턴들 file 가을의 곰을... 2010.10.02 17410
20 [펌] Objecitive-C On Ubuntu 가을의 곰을... 2010.10.02 21426
19 [펀글] Objective-C On Linux 가을의 곰을... 2010.10.01 19947
18 경의선 : 서울역 <=> 상암DMC 출퇴근용 시간표 가을의 곰을... 2010.09.26 21410
17 게임보이로 풀어보는 광기 "역전재판" file 가을의 곰을... 2010.08.21 14694
16 안녕하세요 곰피 늙은왕자 2009.12.15 24659
15 名 言 錄"(리더스다이제스트 1983.3--1988.1) 가을의 곰을... 2009.11.01 14934
14 "우주의 힘이 당신과 함께하길(May the Force be with you)" file comphy 2009.10.31 26761
» AIMA Python Code, 파이썬 인공지능 코드 가을의 곰을... 2009.10.18 20985
12 Standards and Style for Coding in ANSI C 가을의 곰을... 2009.10.11 15654
11 도스아래한글 필기체 폰트 file 가을의 곰을... 2009.10.04 30882
10 기술사 시험 준비 요령 가을의 곰을... 2009.10.04 25006
9 기술사공부방법 (이제언기술사) 가을의 곰을... 2009.10.04 25561
8 GSM : Overview of the Global System for Mobile Communications 가을의 곰 2009.10.04 20790
대표 김성준 주소 : 경기 용인 분당수지 U타워 등록번호 : 142-07-27414
통신판매업 신고 : 제2012-용인수지-0185호 출판업 신고 : 수지구청 제 123호 개인정보보호최고책임자 : 김성준 sjkim70@stechstar.com
대표전화 : 010-4589-2193 [fax] 02-6280-1294 COPYRIGHT(C) stechstar.com ALL RIGHTS RESERVED