1 Python for Artificial Intelligence
2 Agent Architectures and Hierarchical Control

1 Python for Artificial Intelligence

p 9 AIPython ปกด runnable code , มี design goal
– readability , แต่ asymptotic complexity ไม่ compromised
– และตัว AIPython ไม่ถือว่ามาทดแทน well-designed libraries หรือ optimized tool
– มีใช้ library – matplotlib เพื่อ plotting , drawing
1.1. Why python?
เพราะใกล้เคียงกับ pseudo-code และ ปกภ ok , แต่ถ้ายังไม่ได้ ก็อาจจะต้องใช้ lower-level language – แต่ยังไง lower-level languages ก็ยังมี interoperate ดีกับ python
ซึ่งการใช้ python ร่วมดวย ก็ดี เพราะประหยัดเวลากว่าในบางส่วน
p 10 1.2 Getting python – ใช้ python 3.9 or more , and matplotlib
download python 3 , หรือจาก anaconda
ใช้ pip3 , install matplotlib

pip3 install matplotlib

ยกเว้นไม่ได้ ก็ใช้ pip แทน pip 3
p 11
p 12


2 Agent Architectures and Hierarchical Control