Unit 2 Fai
Unit 2 Fai
BHIMAVARAM
DEPARTMENT OF CSE(ARTIFICIAL INTELLIGENCE AND MACHINE
LEARNING)
UNIT 2
Topics :
1. Agents and Environments
2. Good Behavior : The concept of Rationality
3. The Nature of Environments
4. Structure of Agents
Agents and Environments
An “agent” is an independent program or entity that interacts with
its environment by perceiving its surroundings via sensors, then
acting through actuators. Agents use their actuators to run through
a cycle of perception, thought, and action. Examples of agents in
general terms include:
b. Human: Yes, we’re all agents. Humans have eyes, ears, and
other organs that act as sensors, and hands, legs, mouths, and
other body parts act as actuators.
Simple Reflex Agents: These agents work here and now and
ignore the past. They respond using the event-condition-action
rule. The ECA rule applies when a user initiates an event, and the
Agent turns to a list of preset conditions and rules, resulting in
pre-programmed outcomes.
Agent Terminology
1. Performance Measure of Agent − It is the criteria, which
determines how successful an agent is.
2. Behavior of Agent − It is the action that agent performs
after any given sequence of precepts.
3. Percept − It is agent’s perceptual inputs at a given instance.
4. Percept Sequence − It is the history of all that an agent has
perceived till date.
5. Agent Function − It is a map from the precept sequence to
an action.
Properties of Environment
Goals are inadequate when there are conflicting goals, out of which
only few can be achieved. Goals have some uncertainty of being
achieved and you need to weigh likelihood of success against the
importance of a goal.
Learning Agents
A learning agent can be divided into four conceptual
components, as shown in figure below. The most important
distinction is between the learning element, which is responsible
for making improvements, and the performance element, which is
responsible for selecting external actions. The performance element
is what we have previously considered to be the entire agent: it
takes in percepts and decides on actions. The learning element uses
feedback from the critic on how the agent is doing and determines
how the performance CRITIC element should be modified to do
better in the future.
How the Components of Agent Programs work
The agent programs consists of various components that
represent environment that the agent inhabits. To draw user’s
attention the components will make various representations about
the environments that the agent inhabits. In general,we can place
the representations along an axis of increasing complexity and
expressive power—atomic, factored, and structured as shown in
the below figure :