Introduction to Artificial Intelligence Janyl Jumadinova September - - PowerPoint PPT Presentation

introduction to artificial intelligence
SMART_READER_LITE
LIVE PREVIEW

Introduction to Artificial Intelligence Janyl Jumadinova September - - PowerPoint PPT Presentation

Introduction to Artificial Intelligence Janyl Jumadinova September 5, 2016 What is AI? Systems that think like humans Systems that think rationally Systems that act like humans Systems that act rationally 2/15 Agents and environments Agent


slide-1
SLIDE 1

Introduction to Artificial Intelligence

Janyl Jumadinova September 5, 2016

slide-2
SLIDE 2

What is AI?

Systems that think like humans Systems that think rationally Systems that act like humans Systems that act rationally

2/15

slide-3
SLIDE 3

Agents and environments

Agent

An agent is something that acts in an environment

3/15

slide-4
SLIDE 4

Agents and environments

Agent

An agent is something that acts in an environment An agent acts intelligently if:

◮ its actions are appropriate for its goals and circumstances ◮ it is flexible to changing environments and goals ◮ it learns from experience ◮ it makes appropriate choices given perceptual and

computational limitations

3/15

slide-5
SLIDE 5

Agents and environments

? agent percepts sensors actions environment actuators

4/15

slide-6
SLIDE 6

Agents and environments

? agent percepts sensors actions environment actuators

Agents include humans, robots, softbots, thermostats, etc.

4/15

slide-7
SLIDE 7

Agents and environments

? agent percepts sensors actions environment actuators

Agents include humans, 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

4/15

slide-8
SLIDE 8

A vacuum cleaner agent

A B

Percepts: location and contents, e.g., [A, Dirty] Actions: Left, Right, Suck, NoOp

5/15

slide-9
SLIDE 9

A vacuum cleaner agent

What is the right function? What makes an agent good or bad, intelligent or stupid?

6/15

slide-10
SLIDE 10

Agents and environments

For any given class of environments and tasks, we seek the agent (or class of agents) with the best performance

7/15

slide-11
SLIDE 11

Agents and environments

For any given class of environments and tasks, we seek the agent (or class of agents) with the best performance

Caveat: computational limitations make perfect rationality unachievable

7/15

slide-12
SLIDE 12

Agents and environments

For any given class of environments and tasks, we seek the agent (or class of agents) with the best performance

Caveat: computational limitations make perfect rationality unachievable − → design best program for given machine resources

7/15

slide-13
SLIDE 13

Rationality

Fixed performance measure evaluates the environment sequence

◮ one point per square cleaned up in time T? ◮ one point per clean square per time step, minus one per move? ◮ penalize for > k dirty squares? 8/15

slide-14
SLIDE 14

Rationality

Fixed performance measure evaluates the environment sequence

◮ one point per square cleaned up in time T? ◮ one point per clean square per time step, minus one per move? ◮ penalize for > k dirty squares?

A rational agent chooses whichever action maximizes the expected value of the performance measure given the percept sequence to date

8/15

slide-15
SLIDE 15

Rationality

Rational = omniscient – percepts may not supply all relevant information

9/15

slide-16
SLIDE 16

Rationality

Rational = omniscient – percepts may not supply all relevant information Rational = clairvoyant – action outcomes may not be as expected

9/15

slide-17
SLIDE 17

Rationality

Rational = omniscient – percepts may not supply all relevant information Rational = clairvoyant – action outcomes may not be as expected Hence, rational = successful

9/15

slide-18
SLIDE 18

Rationality

Rational = omniscient – percepts may not supply all relevant information Rational = clairvoyant – action outcomes may not be as expected Hence, rational = successful Rational = ⇒ exploration, learning, autonomy

9/15

slide-19
SLIDE 19

PEAS

To design a rational agent, we must specify the task environment Performance measure Environment Actuators Sensors

10/15

slide-20
SLIDE 20

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . .

11/15

slide-21
SLIDE 21

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . . Environment

11/15

slide-22
SLIDE 22

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . . Environment US streets/freeways, traffic, pedestrians, weather, . . .

11/15

slide-23
SLIDE 23

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . . Environment US streets/freeways, traffic, pedestrians, weather, . . . Actuators

11/15

slide-24
SLIDE 24

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . . Environment US streets/freeways, traffic, pedestrians, weather, . . . Actuators steering, accelerator, brake, horn, speaker/display, . . .

11/15

slide-25
SLIDE 25

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . . Environment US streets/freeways, traffic, pedestrians, weather, . . . Actuators steering, accelerator, brake, horn, speaker/display, . . . Sensors

11/15

slide-26
SLIDE 26

PEAS

To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure safety, destination, profits, legality, comfort, . . . Environment US streets/freeways, traffic, pedestrians, weather, . . . Actuators steering, accelerator, brake, horn, speaker/display, . . . Sensors video, accelerometers, gauges, engine sensors, keyboard, GPS, . . .

11/15

slide-27
SLIDE 27

Internet shopping agent?

12/15

slide-28
SLIDE 28

Internet shopping agent?

Performance measure

12/15

slide-29
SLIDE 29

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . .

12/15

slide-30
SLIDE 30

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . . Environment

12/15

slide-31
SLIDE 31

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . . Environment current and future WWW sites, vendors, shippers, . . .

12/15

slide-32
SLIDE 32

Internet shopping agent?

Performance measure price, quality, appropriateness, efficiency, . . . Environment current and future WWW sites, vendors, shippers, . . . Actuators

12/15

slide-33
SLIDE 33

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, . . .

12/15

slide-34
SLIDE 34

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

12/15

slide-35
SLIDE 35

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/15

slide-36
SLIDE 36

Environment Types

◮ Fully Observable: the agent can observe the state of the world,

vs. Partially Observable: there can be a number states that are possible given the agent’s observations

13/15

slide-37
SLIDE 37

Environment Types

◮ Fully Observable: the agent can observe the state of the world,

vs. Partially Observable: there can be a number states that are possible given the agent’s observations

◮ Deterministic: the resulting state is determined from the action

and the state, vs. Stochastic: there is uncertainty about the resulting state

13/15

slide-38
SLIDE 38

Environment Types

◮ Fully Observable: the agent can observe the state of the world,

vs. Partially Observable: there can be a number states that are possible given the agent’s observations

◮ Deterministic: the resulting state is determined from the action

and the state, vs. Stochastic: there is uncertainty about the resulting state

◮ Episodic: agent’s experience is divided into atomic episodes, vs.

Sequential: the current decision could affect all future decisions

13/15

slide-39
SLIDE 39

Environment Types

◮ Static: environment does not change, vs.

Dynamic: the environment can change while an agent is deliberating, vs. Semi: the environment itself does not change with the passage

  • f time but the agent’s performance score does

14/15

slide-40
SLIDE 40

Environment Types

◮ Static: environment does not change, vs.

Dynamic: the environment can change while an agent is deliberating, vs. Semi: the environment itself does not change with the passage

  • f time but the agent’s performance score does

◮ Discrete vs. Continuous: applies to the state of the

environment, to the way time is handled, and to the percepts and actions of the agent

14/15

slide-41
SLIDE 41

Environment Types

◮ Static: environment does not change, vs.

Dynamic: the environment can change while an agent is deliberating, vs. Semi: the environment itself does not change with the passage

  • f time but the agent’s performance score does

◮ Discrete vs. Continuous: applies to the state of the

environment, to the way time is handled, and to the percepts and actions of the agent

◮ Single-agent vs. Multi-agent 14/15

slide-42
SLIDE 42

Environment Types

◮ Static: environment does not change, vs.

Dynamic: the environment can change while an agent is deliberating, vs. Semi: the environment itself does not change with the passage

  • f time but the agent’s performance score does

◮ Discrete vs. Continuous: applies to the state of the

environment, to the way time is handled, and to the percepts and actions of the agent

◮ Single-agent vs. Multi-agent

The environment type largely determines the agent design

14/15

slide-43
SLIDE 43

Environment Types

Solitaire Observable Yes Deterministic Yes Episodic No Static Yes Discrete Yes Single-agent Yes

15/15

slide-44
SLIDE 44

Environment Types

Solitaire Internet shopping Observable Yes No Deterministic Yes Partly Episodic No No Static Yes Semi Discrete Yes Yes Single-agent Yes Yes (except auctions)

15/15

slide-45
SLIDE 45

Environment Types

Solitaire Internet shopping Taxi Observable Yes No No Deterministic Yes Partly No Episodic No No No Static Yes Semi No Discrete Yes Yes No Single-agent Yes Yes (except auctions) No

15/15

slide-46
SLIDE 46

Environment Types

Solitaire Internet shopping Taxi Observable Yes No No Deterministic Yes Partly No Episodic No No No Static Yes Semi No Discrete Yes Yes No Single-agent Yes Yes (except auctions) No The real world is partially observable, stochastic, sequential, dynamic, continuous, multi-agent

15/15