cs188 Fa22 Lec00
cs188 Fa22 Lec00
Introduction
Fall 2022
University of California, Berkeley
[These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley (ai.berkeley.edu).]
First Half of Today: Intro and Logistics
▪ Staff introductions: Igor, Peyrin, and course staff
▪ Course logistics
▪ Lectures, discussions, office hours, and exams
▪ Resources and communication platforms
▪ Collaboration and academic honesty
▪ DSP and extenuating circumstances
▪ Stress management and mental health
Staff Introductions: Igor Mordatch (he/him)
▪ Research scientist at Google Brain, with research interests in
machine learning, robotics, and multi-agent systems
▪ Previously:
▪ Research scientist at OpenAI
▪ Postdoctoral fellow at UC Berkeley
▪ PhD from University of Washington
▪ Visiting researcher at Stanford and Pixar
▪ Co-organized OpenAI Scholars mentorship program
▪ Mentor and tutor for AI4All, Google CS Research
Mentorship Program, and Girls Inc.
Staff Introductions: Peyrin (he/him)
▪ Did my undergrad at Berkeley (2017-2021)
▪ TA for 10 semesters (8x CS 161, 3x CS 61C, 1x CS 188)
▪ Also been on staff for CS 61A, EE 16A, EE 16B
▪ Did a 5th year MS at Berkeley (2021-2022)
▪ Research focus: computer science education
▪ Advisors: Nicholas Weaver and Dan Garcia
▪ First-year lecturer in EECS
▪ I’m paid exclusively to care about students and staff
▪ First time teaching a non-summer class as instructor,
Actual real picture of me.
so your feedback/advice/complaints are appreciated!
▪ Please call me “Peyrin”!
▪ No “professor”, “Mr.”, “sir”, “doctor”, etc. I’m not paid
enough for that.
Our talented course staff!
Anthony Han Cham Yao Joy Liu Micah Carroll Nitish Dashora
he/him he/him she/her he/him he/him
Our talented course staff!
Sherry Yang
Andrew Qin
Karpathy & Fei-Fei, 2015; Donahue et al., 2015; Xu et al, 2015; many more
Course Topics
▪ Part 1: Intelligence from Computation
▪ Fast search/planning
▪ Constraint satisfaction (e.g. scheduling)
▪ Adversarial and uncertain search (e.g. routing, navigation)
▪ Part 2: Intelligence from Data
▪ Probabilistic inference with Bayes’ nets (e.g. robot localization)
▪ Decision theory
▪ Supervised machine learning (e.g. spam detection)
▪ Throughout: Applications
▪ Natural language, vision, robotics, games, etc.
Should I take CS 188?
▪ Yes, if you want to know how to design rational agents!
▪ CS 188 gives you extra mathematical maturity
▪ CS 188 gives you a survey of other non-CS fields that interact with AI
(e.g. robotics, cognitive science, economics)
▪ Disclaimer: If you’re interested in making yourself more
competitive for AI jobs, CS 189 and CS 182 are better fits.
▪ The last few CS 188 lectures (neural networks) are used by many
modern state-of-the-art systems. CS 189 and CS 182 cover these in
more depth
Designing Rational Agents
▪ An agent is an entity that perceives and acts.
▪ A rational agent selects actions that maximize
its (expected) utility.
▪ Characteristics of the percepts, environment,
and action space dictate techniques for
selecting rational actions
▪ This course is about:
Sensors
Environment
▪ General AI techniques for a variety of problem Percepts
Agent
types ?
Agent Environment
Sensors
Percepts
?
Actuators Actions
Pac-Man is a registered trademark of Namco-Bandai Games, used here for educational purposes
CS 188: Artificial Intelligence
Search
Fall 2022
University of California, Berkeley
[These slides were created by Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC Berkeley (ai.berkeley.edu).]
Today
▪ Agents that Plan Ahead
▪ Search Problems
▪ Reflex agents:
▪ Choose action based on current percept (and
maybe memory)
▪ May have memory or a model of the world’s
current state
▪ Do not consider the future consequences of
their actions
▪ Consider how the world IS
▪ Planning agents:
▪ Ask “what if”
▪ Decisions based on (hypothesized)
consequences of actions
▪ Must have a model of how the world evolves in
response to actions
▪ Must formulate a goal (test)
▪ Consider how the world WOULD BE
▪ A state space
“N”, 1.0
▪ A successor function
(with actions, costs)
“E”, 1.0
▪ A start state and a goal test
▪ State space:
▪ Cities
▪ Successor function:
▪ Roads: Go to adjacent city with
cost = distance
▪ Start state:
▪ Arad
▪ Goal test:
▪ Is state == Bucharest?
▪ Solution?
What’s in a State Space?
The world state includes every last detail of the environment
A search state keeps only the details needed for planning (abstraction)
▪ World state:
▪ Agent positions: 120
▪ Food count: 30
▪ Ghost positions: 12
▪ Agent facing: NSEW
▪ How many
▪ World states?
120x(230)x(122)x4
▪ States for pathing?
120
▪ States for eat-all-dots?
120x(230)
Quiz: Safe Passage