Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 36 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
36
Dung lượng
254,5 KB
Nội dung
Artificial Intelligence Trí Tuệ Nhân Tạo Chapter 3 - Intelligent Agents Lê Quân Hà Outline • Agents and environments • Rationality • PEAS (Performance measure, Environment, Actuators, Sensors) • Environment types • Agent types Agents • An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators Example: • 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 Agents and environments • Agents include human, robots, softbots, thermostats, etc. • 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 Vacuum-cleaner world • Environment: square A and B • Percepts: location and contents, e.g., [A,Dirty] • Actions: Left , Right , Suck , NoOp The vacuum-cleaner world • What is the right function? Can it be implemented in a small agent program? function REFLEX-VACUUM-AGENT ([location, status]) return an action if status == Dirty then return Suck else if location == A then return Right else if location == B then return Left 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 • A rational agent is one that does the right thing based on what it can perceive and the actions it can perform. • What is the right thing? Approximation: The right action is the one that will cause the agent to be most successful. Measure of success? • Performance measure: An objective criterion for success of an agent's behavior E.g., performance measure of a vacuum-cleaner agent could be amount of dirt cleaned up, amount of time taken, amount of electricity consumed, amount of noise generated, etc. Rational agents • What is rational at a given time depends on four things: Performance measure, Percept sequence to date (sensors). Prior environment knowledge, Actions, • 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. Rational agents • Rationality ≠ omniscience An omniscient agent knows the actual outcome of its actions. • Rationality ≠ perfection Rationality maximizes expected performance, while perfection maximizes actual performance. • 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) • Rational ⇒ exploration, learning, autonomy PEAS • To design a rational agent we must specify its task environment. • PEAS description of the environment: Performance measure: Performance measure: Goals/desires the agent should try to achieve Environment Environment: in which the agent exists Actuators Actuators: Actions which may act the environment Sensors Sensors: Percepts/observations of the environment