winter20-paip

所属分类:人工智能/神经网络/深度学习
开发工具:Racket
文件大小:0KB
下载次数:0
上传日期:2020-12-27 15:05:23
上 传 者sh-1993
说明:  为《人工智能编程范例》一书使用的材料和编写的代码(以球拍形式),
(Materials used and Code written (in racket) for the book `Paradigms of AI Programming`,)

文件列表:
GPS/ (0, 2020-12-27)
GPS/blocks_world_domain.json (6850, 2020-12-27)
GPS/gps.py (1887, 2020-12-27)
GPS/gps.rkt (2929, 2020-12-27)
GPS/monkaay.json (1121, 2020-12-27)
GPS/school.json (1020, 2020-12-27)
GPS/template.json (176, 2020-12-27)
Peter Norvig - Paradigms of Artificial Intelligence Programming.pdf (4641005, 2020-12-27)
eliza/ (0, 2020-12-27)
eliza/eliza.rkt (5627, 2020-12-27)
eliza/tests.rkt (2543, 2020-12-27)
pmatch/ (0, 2020-12-27)
pmatch/pmatch.rkt (7966, 2020-12-27)
pmatch/tests.rkt (2181, 2020-12-27)
rule-based-translator/ (0, 2020-12-27)
rule-based-translator/rule-based-translator.rkt (396, 2020-12-27)
student/ (0, 2020-12-27)
student/student.rkt (6569, 2020-12-27)
student/tests.rkt (1819, 2020-12-27)
symbolic meth/ (0, 2020-12-27)
symbolic meth/meth.rkt (516, 2020-12-27)

# winter20-paip Materials used and code written for the 2020 winter school conducted on the book *Paradigms of Artificial Intelligence Programming* by Peter Norvig. ## GPS [GPS](https://en.wikipedia.org/wiki/General_Problem_Solver) is a computer program intended to work as a universal problem solver machine (exaggerated) . It's works with `means-end-analysis` (**We deliberate not about ends, but about means**). Refer to Chapter 4 in the book provided for more info. Here's a run of GPS for the school problem: ```bash python gps.py school.json > Do you want to output a stack trace?[y/n] n Executing look up number Executing telephone shop Executing tell shop problem Executing give shop money Executing shop installs battery Executing drive son to school ``` ### How-To use the [Template](GPS/template.json): 1. Refer to [this file](GPS/gps.rkt) for understanding how to formulate a problem (if possible) for the GPS, and checkout [this example](GPS/monkaay.json) for specifics. Here's a link to the original [GPS paper](http://bitsavers.informatik.uni-stuttgart.de/pdf/rand/ipl/P-1584_Report_On_A_General_Problem-Solving_Program_Feb59.pdf). ## eliza [ELIZA](https://en.wikipedia.org/wiki/ELIZA) is an early natural language processing computer program that uses pattern matching and substitution to give an illusion of understanding. Here is a run of eliza (on [latest commit](https://github.com/iiittheorygroup/winter20-paip/tree/459f7427cf4aab85d945bd1e8c8c9256d8816e72)) ```lisp > (eliza '(hello eliza)) '(How do you do. Please state your problem) > (eliza '(i want to go back to college)) '(Suppose you got to go back to college soon) > (eliza '(i can go to jc if i get back to college)) '(Really-- if you get back to college) > (eliza '(no not really)) '(Why not?) > (eliza '(i was being sarcastic)) '(Why do you tell me you were being sarcastic now?) > (eliza '(i feel bored)) '(Do you often feel bored ?) > (eliza '(i felt bored yesterday)) '(What other feelings do you have?) ``` Here's a link to the original [Eliza paper](https://web.stanford.edu/class/linguist238/p36-weizenabaum.pdf). See [test cases](./eliza/tests.rkt) to get a feel of how various components of the program work. To run all tests, do ``` raco test tests.rkt ```

近期下载者

相关文件


收藏者