SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Downloaden Sie, um offline zu lesen
Intelligent Agents
(more concrete study)
R&N: Chap. 2
Outline
ƒ Agents and environments
ƒ Rationality
ƒ PEAS (Performance measure, Environment,
Actuators, Sensors)
ƒ Environment types
ƒ Agent types
2
Agents
ƒ An agent is anything that can be viewed as
perceiving its environment through sensors
and acting upon that environment through
actuators
ƒ Human agent: eyes, ears, and other organs for
sensors; hands, legs, mouth, and other body
parts for actuators
ƒ Robotic agent: cameras and infrared range
finders for sensors; various motors for
actuators
3
Agents and environments
ƒ The agent function maps from percept
histories to actions: [f: P* Æ A]
ƒ The agent program runs on the physical
architecture to produce f
ƒ agent = architecture + program
4
Vacuum-cleaner world
ƒ Percepts: location and contents, e.g.,
[A, Dirty]
ƒ Actions: Left, Right, Suck, NoOp
5
A vacuum-cleaner agent
6
ƒ What is the right function?
ƒ Can it be implemented in a small agent program?
ƒ Partial tabulation of a simple agent function:
Percept sequence Action
[A;Clean] Right
[A;Dirty] Suck
[B;Clean] Left
[B;Dirty] Suck
[A;Clean], [A;Clean] Right
[A;Clean], [A;Dirty] Suck
…. ….
Rational agents
ƒ An agent should strive to "do the right thing", based
on what it can perceive and the actions it can
perform. The right action is the one that will cause
the agent to be most successful
ƒ Performance measure: An objective criterion for
success of an agent's behavior
ƒ E.g., the performance measure of the vacuum-cleaner
agent example could be amount of dirt cleaned up,
amount of time taken, amount of electricity
consumed, amount of noise generated, etc.
7
Rational agents
ƒ Rational Agent: For each possible percept
sequence, a rational agent should select an
action that is expected to maximize its
performance measure, given the evidence
provided by the percept sequence and
whatever built-in knowledge the agent has.
8
Rational agents
ƒ Rationality is distinct from omniscience (all-knowing
with infinite knowledge)
ƒ Does rationality mean perfection?
ƒ Agents can perform actions in order to modify future
percepts so as to obtain useful information
(information gathering, exploration)
ƒ An agent is autonomous if its behavior is determined
by its own experience (with ability to learn and adapt)
9
Task Environment
ƒ PEAS: Performance measure, Environment, Actuators,
and Sensors
ƒ Must first specify the task environment for
intelligent agent design
ƒ Consider a more complex example: the task of
designing an automated taxi driver:
ƒ Performance measure
ƒ Environment
ƒ Actuators
ƒ Sensors
10
PEAS
ƒ Must first specify the setting for intelligent agent
design
ƒ Performance measure: Safe, fast, legal,
comfortable trip, maximize profits
ƒ Environment: Roads, other traffic, pedestrians,
customers, stray animals, road works, …
ƒ Actuators: Steering wheel, accelerator, brake,
signal, horn, voice synthesizer or display screen, …
ƒ Sensors: Cameras, sonar, speedometer, GPS,
odometer, engine sensors, keyboard or microphone
11
PEAS
Agent: Internet shopping agent
ƒ Performance measure?? price, quality,
appropriateness, efficiency
ƒ Environment?? current and future WWW sites,
vendors, shippers
ƒ Actuators?? display to user, follow URL, fill in
form
ƒ Sensors?? HTML pages (text, graphics, scripts)
12
PEAS
Agent: Internet shopping agent
ƒ Performance measure?? price, quality,
appropriateness, efficiency
ƒ Environment?? current and future WWW sites,
vendors, shippers
ƒ Actuators?? display to user, follow URL, fill in
form
ƒ Sensors?? HTML pages (text, graphics, scripts)
13
Types of Task Environments
ƒ Fully observable (vs. partially observable): An agent's
sensors give it access to the complete state of the
environment at each point in time.
ƒ Deterministic (vs. stochastic): The next state of the
environment is completely determined by the current
state and the action executed by the agent. (If the
environment is deterministic except for the actions
of other agents, then the environment is strategic)
ƒ Episodic (vs. sequential): The agent's experience is
divided into atomic "episodes" (each episode consists
of the agent perceiving and then performing a single
action), and the choice of action in each episode
depends only on the episode itself.
17
Environment types
ƒ Static (vs. dynamic): The environment is
unchanged while an agent is deliberating. (The
environment is semidynamic if the
environment itself does not change with the
passage of time but the agent's performance
score does)
ƒ Discrete (vs. continuous): A limited number of
distinct, clearly defined percepts and actions.
ƒ Single agent (vs. multiagent): An agent
operating by itself in an environment.
18
Environment types: Examples
19
Crossword
puzzle
Chess with
clock
Internet
shopping
Taxi Driver
Observable Yes Yes! No No
Deterministic Yes Strategic Partly No
Episodic No No No No
Static Yes Semi Semi No
Discrete Yes Yes Yes No
Single-agent Yes No Yes!! No
ƒ Are the answers exact?
ƒ The environment type largely determines the agent design
ƒ The real world is (of course) partially observable, stochastic,
sequential, dynamic, continuous, multi-agent
Agent functions and programs
ƒ An agent is completely specified by the agent
function mapping percept sequences to actions
ƒ One agent function (or a small equivalence
class) is rational
ƒ The aim is to design the agent program that
implement the rational agent function concisely
ƒ This program shall run on a computing device
with sensors and actuators: architecture
20
A vacuum-cleaner agent
21
Table-driven to agent construction
ƒ Is it practical?
ƒ Consider the automated taxi
ƒ 30 frames/sec; 640x480 pixels with 24 bits for
color
ƒ The size of the lookup table > 10250B
entries!!!
ƒ Drawbacks:
ƒ Huge table
ƒ Take a long time to build the table
ƒ No autonomy
ƒ Even with learning, need a long time to learn the
table entries
22
Agent types
ƒ Four basic types in order of increasing
generality:
ƒ Simple reflex agents
ƒ Model-based reflex agents
ƒ Goal-based agents
ƒ Utility-based agents
All these can be turned into learning agents
23
Simple reflex agents
24
function Reflex-Vacuum-Agent( [location,status]) re-
turns an action
if status = Dirty then return Suck
else if location = A then return Right
else if location = B then return Left
Model-based reflex agents
25
It keeps track of the current state of the world
using an internal model
Goal-based agents
26
It keeps track of the current state of the world
and a set of goals to achieve.
Utility-based agents
27
Learning agents
28
Summary
ƒ Agents interact with environments through actuators and sensors
ƒ The agent function describes what the agent does in all
circumstances
ƒ The performance measure evaluates the environment sequence
ƒ A perfectly rational agent maximizes expected performance
ƒ Agent programs implement (some) agent functions
ƒ PEAS descriptions define task environments
ƒ Environments are categorized along several dimensions:
ƒ observable? deterministic? episodic? static? discrete? single-agent?
ƒ Several basic agent architectures exist:
ƒ reflex, model-based, goal-based, utility-based
29

Weitere ähnliche Inhalte

Ähnlich wie ai-slides-1233566181695672-2 (1).pdf

Ähnlich wie ai-slides-1233566181695672-2 (1).pdf (20)

AI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptxAI_02_Intelligent Agents.pptx
AI_02_Intelligent Agents.pptx
 
Agents_AI.ppt
Agents_AI.pptAgents_AI.ppt
Agents_AI.ppt
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
 
AI_Ch2.pptx
AI_Ch2.pptxAI_Ch2.pptx
AI_Ch2.pptx
 
Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
 
chapter2.ppt
chapter2.pptchapter2.ppt
chapter2.ppt
 
chapter2.ppt
chapter2.pptchapter2.ppt
chapter2.ppt
 
Lecture 02-agents
Lecture 02-agentsLecture 02-agents
Lecture 02-agents
 
agents in ai ppt
agents in ai pptagents in ai ppt
agents in ai ppt
 
intelligent agent (1).pptx
intelligent agent (1).pptxintelligent agent (1).pptx
intelligent agent (1).pptx
 
Week 2.pdf
Week 2.pdfWeek 2.pdf
Week 2.pdf
 
Intelligent agents
Intelligent agentsIntelligent agents
Intelligent agents
 
Lec 2-agents
Lec 2-agentsLec 2-agents
Lec 2-agents
 
Unit-1.pptx
Unit-1.pptxUnit-1.pptx
Unit-1.pptx
 
Agents-and-Problem-Solving-20022024-094442am.pdf
Agents-and-Problem-Solving-20022024-094442am.pdfAgents-and-Problem-Solving-20022024-094442am.pdf
Agents-and-Problem-Solving-20022024-094442am.pdf
 
Lecture 2 Agents.pptx
Lecture 2 Agents.pptxLecture 2 Agents.pptx
Lecture 2 Agents.pptx
 
AI Agents, Agents in Artificial Intelligence
AI Agents, Agents in Artificial IntelligenceAI Agents, Agents in Artificial Intelligence
AI Agents, Agents in Artificial Intelligence
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial Intelligence
 

Mehr von ShivareddyGangam

Student Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptxStudent Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptxShivareddyGangam
 
Project Management (2).pdf
Project Management (2).pdfProject Management (2).pdf
Project Management (2).pdfShivareddyGangam
 
The Product and Process(1).pdf
The Product and Process(1).pdfThe Product and Process(1).pdf
The Product and Process(1).pdfShivareddyGangam
 
Unit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptUnit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptShivareddyGangam
 
artificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdfartificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdfShivareddyGangam
 
Software Project Risks Management (1).pdf
Software Project Risks Management (1).pdfSoftware Project Risks Management (1).pdf
Software Project Risks Management (1).pdfShivareddyGangam
 
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxOS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxShivareddyGangam
 
machinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdfmachinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdfShivareddyGangam
 
ARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptShivareddyGangam
 

Mehr von ShivareddyGangam (20)

Student Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptxStudent Voting Application for Election – Using SMS (1).pptx
Student Voting Application for Election – Using SMS (1).pptx
 
Project Management (2).pdf
Project Management (2).pdfProject Management (2).pdf
Project Management (2).pdf
 
pca.ppt
pca.pptpca.ppt
pca.ppt
 
The Product and Process(1).pdf
The Product and Process(1).pdfThe Product and Process(1).pdf
The Product and Process(1).pdf
 
Unit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).pptUnit24_TopologicalSort (2).ppt
Unit24_TopologicalSort (2).ppt
 
Lecture1_jps (1).ppt
Lecture1_jps (1).pptLecture1_jps (1).ppt
Lecture1_jps (1).ppt
 
2 semai.pptx
2 semai.pptx2 semai.pptx
2 semai.pptx
 
artificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdfartificialintelligencea-200326090832.pdf
artificialintelligencea-200326090832.pdf
 
Software Project Risks Management (1).pdf
Software Project Risks Management (1).pdfSoftware Project Risks Management (1).pdf
Software Project Risks Management (1).pdf
 
Introduction (1).pdf
Introduction (1).pdfIntroduction (1).pdf
Introduction (1).pdf
 
Unit 3 (1) (1).pdf
Unit 3 (1) (1).pdfUnit 3 (1) (1).pdf
Unit 3 (1) (1).pdf
 
Unit 1 (1).pdf
Unit 1 (1).pdfUnit 1 (1).pdf
Unit 1 (1).pdf
 
Strassen.ppt
Strassen.pptStrassen.ppt
Strassen.ppt
 
Notion of Algorithms.pdf
Notion of Algorithms.pdfNotion of Algorithms.pdf
Notion of Algorithms.pdf
 
11_Automated_Testing.ppt
11_Automated_Testing.ppt11_Automated_Testing.ppt
11_Automated_Testing.ppt
 
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptxOS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
OS-Final-Transform-Manual-Testing-Processes-to-incorporate-Automatio....pptx
 
Project Management.pdf
Project Management.pdfProject Management.pdf
Project Management.pdf
 
PP
PPPP
PP
 
machinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdfmachinelearningengineeringslideshare-160909192132 (1).pdf
machinelearningengineeringslideshare-160909192132 (1).pdf
 
ARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).pptARCHITECTURE OF DBMS (1).ppt
ARCHITECTURE OF DBMS (1).ppt
 

Kürzlich hochgeladen

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Kürzlich hochgeladen (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 

ai-slides-1233566181695672-2 (1).pdf

  • 1. Intelligent Agents (more concrete study) R&N: Chap. 2
  • 2. Outline ƒ Agents and environments ƒ Rationality ƒ PEAS (Performance measure, Environment, Actuators, Sensors) ƒ Environment types ƒ Agent types 2
  • 3. Agents ƒ An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators ƒ Human agent: eyes, ears, and other organs for sensors; hands, legs, mouth, and other body parts for actuators ƒ Robotic agent: cameras and infrared range finders for sensors; various motors for actuators 3
  • 4. Agents and environments ƒ The agent function maps from percept histories to actions: [f: P* Æ A] ƒ The agent program runs on the physical architecture to produce f ƒ agent = architecture + program 4
  • 5. Vacuum-cleaner world ƒ Percepts: location and contents, e.g., [A, Dirty] ƒ Actions: Left, Right, Suck, NoOp 5
  • 6. A vacuum-cleaner agent 6 ƒ What is the right function? ƒ Can it be implemented in a small agent program? ƒ Partial tabulation of a simple agent function: Percept sequence Action [A;Clean] Right [A;Dirty] Suck [B;Clean] Left [B;Dirty] Suck [A;Clean], [A;Clean] Right [A;Clean], [A;Dirty] Suck …. ….
  • 7. Rational agents ƒ An agent should strive to "do the right thing", based on what it can perceive and the actions it can perform. The right action is the one that will cause the agent to be most successful ƒ Performance measure: An objective criterion for success of an agent's behavior ƒ E.g., the performance measure of the vacuum-cleaner agent example could be amount of dirt cleaned up, amount of time taken, amount of electricity consumed, amount of noise generated, etc. 7
  • 8. Rational agents ƒ Rational Agent: For each possible percept sequence, a rational agent should select an action that is expected to maximize its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has. 8
  • 9. Rational agents ƒ Rationality is distinct from omniscience (all-knowing with infinite knowledge) ƒ Does rationality mean perfection? ƒ Agents can perform actions in order to modify future percepts so as to obtain useful information (information gathering, exploration) ƒ An agent is autonomous if its behavior is determined by its own experience (with ability to learn and adapt) 9
  • 10. Task Environment ƒ PEAS: Performance measure, Environment, Actuators, and Sensors ƒ Must first specify the task environment for intelligent agent design ƒ Consider a more complex example: the task of designing an automated taxi driver: ƒ Performance measure ƒ Environment ƒ Actuators ƒ Sensors 10
  • 11. PEAS ƒ Must first specify the setting for intelligent agent design ƒ Performance measure: Safe, fast, legal, comfortable trip, maximize profits ƒ Environment: Roads, other traffic, pedestrians, customers, stray animals, road works, … ƒ Actuators: Steering wheel, accelerator, brake, signal, horn, voice synthesizer or display screen, … ƒ Sensors: Cameras, sonar, speedometer, GPS, odometer, engine sensors, keyboard or microphone 11
  • 12. PEAS Agent: Internet shopping agent ƒ Performance measure?? price, quality, appropriateness, efficiency ƒ Environment?? current and future WWW sites, vendors, shippers ƒ Actuators?? display to user, follow URL, fill in form ƒ Sensors?? HTML pages (text, graphics, scripts) 12
  • 13. PEAS Agent: Internet shopping agent ƒ Performance measure?? price, quality, appropriateness, efficiency ƒ Environment?? current and future WWW sites, vendors, shippers ƒ Actuators?? display to user, follow URL, fill in form ƒ Sensors?? HTML pages (text, graphics, scripts) 13
  • 14. Types of Task Environments ƒ Fully observable (vs. partially observable): An agent's sensors give it access to the complete state of the environment at each point in time. ƒ Deterministic (vs. stochastic): The next state of the environment is completely determined by the current state and the action executed by the agent. (If the environment is deterministic except for the actions of other agents, then the environment is strategic) ƒ Episodic (vs. sequential): The agent's experience is divided into atomic "episodes" (each episode consists of the agent perceiving and then performing a single action), and the choice of action in each episode depends only on the episode itself. 17
  • 15. Environment types ƒ Static (vs. dynamic): The environment is unchanged while an agent is deliberating. (The environment is semidynamic if the environment itself does not change with the passage of time but the agent's performance score does) ƒ Discrete (vs. continuous): A limited number of distinct, clearly defined percepts and actions. ƒ Single agent (vs. multiagent): An agent operating by itself in an environment. 18
  • 16. Environment types: Examples 19 Crossword puzzle Chess with clock Internet shopping Taxi Driver Observable Yes Yes! No No Deterministic Yes Strategic Partly No Episodic No No No No Static Yes Semi Semi No Discrete Yes Yes Yes No Single-agent Yes No Yes!! No ƒ Are the answers exact? ƒ The environment type largely determines the agent design ƒ The real world is (of course) partially observable, stochastic, sequential, dynamic, continuous, multi-agent
  • 17. Agent functions and programs ƒ An agent is completely specified by the agent function mapping percept sequences to actions ƒ One agent function (or a small equivalence class) is rational ƒ The aim is to design the agent program that implement the rational agent function concisely ƒ This program shall run on a computing device with sensors and actuators: architecture 20
  • 19. Table-driven to agent construction ƒ Is it practical? ƒ Consider the automated taxi ƒ 30 frames/sec; 640x480 pixels with 24 bits for color ƒ The size of the lookup table > 10250B entries!!! ƒ Drawbacks: ƒ Huge table ƒ Take a long time to build the table ƒ No autonomy ƒ Even with learning, need a long time to learn the table entries 22
  • 20. Agent types ƒ Four basic types in order of increasing generality: ƒ Simple reflex agents ƒ Model-based reflex agents ƒ Goal-based agents ƒ Utility-based agents All these can be turned into learning agents 23
  • 21. Simple reflex agents 24 function Reflex-Vacuum-Agent( [location,status]) re- turns an action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left
  • 22. Model-based reflex agents 25 It keeps track of the current state of the world using an internal model
  • 23. Goal-based agents 26 It keeps track of the current state of the world and a set of goals to achieve.
  • 26. Summary ƒ Agents interact with environments through actuators and sensors ƒ The agent function describes what the agent does in all circumstances ƒ The performance measure evaluates the environment sequence ƒ A perfectly rational agent maximizes expected performance ƒ Agent programs implement (some) agent functions ƒ PEAS descriptions define task environments ƒ Environments are categorized along several dimensions: ƒ observable? deterministic? episodic? static? discrete? single-agent? ƒ Several basic agent architectures exist: ƒ reflex, model-based, goal-based, utility-based 29