Part 2
Part 2
Types of Agents:
An Agent : is anything that acts ()يعمل. It is anything that can be
viewed as perceiving its environment through sensors ( حساسات أو
)أجهزة استشعارand acting upon that environment through actuators 1. Human Agent.
()مشغالت. 2. Robotic Agent.
3. Software Agent.
An agent :
is expected to do more than a computer program.
achieves perfect rationality ( يحقق العقالنية المثاليةalways doing right thing).
The Rational Agent : is one that acts to achieve the best outcome and
accomplish perfect rationality (always doing right thing). 1 2
3 4
5 6
• Performance Measure: evaluates any given sequence of environment states. Rationality: Omniscience, Learning, and Autonomy
The evaluation of the environment is after the action is done .
• An omniscient (perfect) agent knows the actual outcome of its actions and can
act accordingly; but perfection is impossible in reality.
It's better to design the performance measure according to what one completely wants
in the environment rather than according to how one thinks the agent should behave. • Rationality is NOT the same as perfection.
• • Rationality maximizes the expected performance, while perfection maximizes
• Rationality depends on 4 things: the actual performance.
• 1. Performance measure that defines the criterion of successes. • • A rational agent not only to gather information (exploration )استكشافbut also
• 2. The agent’s prior knowledge of the environment. to learn as much as possible from what it perceives.
• 3. The actions that the agent can perform. • • An agent relies on يعتمد علىthe prior knowledge of its designer rather than on
• 4. The agent's percept sequence to date. its own percepts, we say that the agent lacks autonomy االستقالل الذاتي. A rational
agent should be autonomous مستقل.
• • Rational —> exploration استكشاف, learning تعلم, autonomy االستقالل.
7 8
Task Environment: PEAS
Rational Agent:
• To design a rational agent, we must specify the task environment.
• For each possible percept sequence, a rational agent should select an • The performance measure, the environment, and the agent’s actuators and
action that is expected to maximize its performance measure. sensors are grouped as the task environment, and called as PEAS (Performance
Omniscient: Knows everything. measure, Environment, Actuators, Sensors).
Learning: gather information.
Autonomy: information after learning that built over prior knowledge.
P.E.A.S : Performance Measure + Environment + Actuators + Sensors.
1. Performance Measure
2. Environment
3. Actuators .
4. Sensors
• PEAS description of the task environment for an automated taxi.
9 10
13 14
15 16
4.Utility-based agents Learning agents
• • A utility-based agent uses a model of the world, along with a utility function • Learning element is responsible for making improvements,
that measures its preferences among states of the world. • Performance element is responsible for selecting external actions.
• • Then it chooses the action that leads to the best expected utility, where • The learning element uses feedback from critic ناقدon how agent is doing and
expected utility is computed by averaging over all possible outcome states, determines how performance element should be modified to do better in future.
weighted by the probability of the outcome.
• Problem generator is responsible for suggesting actions that will lead to new and
informative experiences.
17 18