SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
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

Contenu connexe

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

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Dernier (20)

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 

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