-
Notifications
You must be signed in to change notification settings - Fork 0
/
lec2.html
214 lines (206 loc) · 8.02 KB
/
lec2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html>
<title>Agents and environments</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.cn/w3css/4/w3.css">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>search</title>
<script src="https://d3js.org/d3.v5.min.js"></script>
<link rel="stylesheet" href="./css/Romania.css">
<link rel="stylesheet" href="./css/DFS_BFS.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="./js/DFS_BFS.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<!-- Sidebar -->
<div class="w3-sidebar w3-light-grey w3-bar-block" style="width:15%">
<a href="./index.html"><h3 class="w3-bar-item">Artificial Intelligence</h3></a>
<a href="./lec2.html" class="w3-bar-item w3-button w3-large">Agents and environments</a>
<ul>
<li><a href="#title-1-1" class="w3-bar-item w3-button">Agents and environments</a></li>
<li><a href="#title-1-2" class="w3-bar-item w3-button">Rationality</a></li>
<li><a href="#title-1-3"class="w3-bar-item w3-button">PEAS</a></li>
<li><a href="#title-1-4" class="w3-bar-item w3-button">Environment types</a></li>
<li><a href="#title-1-5" class="w3-bar-item w3-button">Agent types</a></li>
<li><a href="#title-1-6" class="w3-bar-item w3-button">Summary</a></li>
</ul>
<a href="./lec3.html" class="w3-bar-item w3-button w3-large">Uninformed Search</a>
<a href="./lec4.html" class="w3-bar-item w3-button w3-large">Informed Search</a>
<a href="./lec5.html" class="w3-bar-item w3-button w3-large">Local search</a>
<a href="./lec6.html" class="w3-bar-item w3-button w3-large">Adversarial Search</a>
<a href="./lec7.html" class="w3-bar-item w3-button w3-large">Expectimax Search</a>
<a href="./lec8.html" class="w3-bar-item w3-button w3-large">Markov Decision Process</a>
</div>
<!-- Page Content -->
<div style="margin-left:15%">
<div class="w3-container w3-teal">
<h1 id="title-1-1">Agents and environments</h1>
</div>
<div class="w3-container">
<br>
<img src="./image/lec2_2.png" alt="" style="width:50%;position: relative; left: 280px;">
<font size="5">
<ul>
<font size="5">
<li>An agent perceives its environment through sensors and acts upon it through actuators (or effectors, depending on whom you ask)</li>
<li>Are humans agents?</li>
<li>Are pocket calculators agents?</li>
<li>AI is more interested in agents with large computational resources and environments that require nontrivial decision making</li>
<br>
</font>
</ul>
</font>
</div>
<div class="w3-container w3-teal">
<h1 id="title-1-2">Rationality</h1>
</div>
<div class="w3-container">
<br>
<font size="5">
<ul>
<font size="5">
<li>Are rational agents?</li>
<li>Do rational agents explore and learn?</li>
<li>Do rational agents make mistakes?</li>
<li>Are rational agents autonomous (i.e., transcend initial program)?</li>
<br>
</font>
</ul>
</font>
</div>
<div class="w3-container w3-teal">
<h1 id="title-1-3">PEAS (Performance measure, Environment, Actuators, Sensors)</h1>
</div>
<br>
<h2 style="position: relative;">
<font size="6">A human agent in Pacman</font>
<br>
<video loop="loop" controls="controls" poster="" style="width:70%; position: relative; left:200px">
<source src="./video/lec2-1.mp4" type="video/mp4"></source>
</video>
</h2>
<br>
<h2 style="position: relative;">
<font size="6">The task environment - PEAS</font> <img src="./image/lec2_3.jpg" alt="" style="width:35%; float:right; margin: 30px;">
</h2>
<font size="5">
<ul>
<font size="5">
<li>Performance measure</li>
<p>-1 per step; + 10 food; +500 win; -500 die;+200 hit scared ghost</p>
<li>Environment</li>
<p>Pacman dynamics (incl ghost behavior)</p>
<li>Actuators</li>
<p>Left Right Up Down</p>
<li>Sensors</li>
<p>Entire state is visible (except power pellet duration)</p>
<br>
</font>
</ul>
</font>
<br>
<h2 style="position: relative;">
<font size="6">PEAS: Automated taxi</font> <img src="./image/lec2_4.png" alt="" style="width:25%;position: relative; float:right; margin: 60px">
</h2>
<font size="5">
<ul>
<font size="5">
<li>Performance measure</li>
<p>Income, happy customer, vehicle costs, fines, insurance premiums</p>
<li>Environment</li>
<p>US streets, other drivers, customers, weather, police…</p>
<li>Actuators</li>
<p>Steering, brake, gas, display/speaker</p>
<li>Sensors</li>
<p>Camera, radar, accelerometer, engine sensors, microphone, GPS</p>
<br>
</font>
</ul>
<h2 style="position: relative;">
<br>
<br>
<br>
<font size="6">PEAS: Medical diagnosis system</font>
</h2>
<font size="5">
<ul><img src="./image/lec2_5.png" alt="" style="width:40%;position: relative; left: 280px;">
<font size="5">
<li>Performance measure</li>
<p>Patient health, cost, reputation</p>
<li>Environment</li>
<p>Patients, medical staff, insurers, courts</p>
<li>Actuators</li>
<p>Screen display, email</p>
<li>Sensors</li>
<p>Keyboard/mouse</p>
<br>
</font>
</ul>
<div class="w3-container w3-teal">
<h1 id="title-1-4">Environment types</h1>
</div>
<br>
<div class="w3-container">
<img src="./image/lec2_6.png" alt="" style="width:50%;position: relative; left: 280px">
<br>
<br>
</div>
<br>
<div class="w3-container w3-teal">
<h1 id="title-1-5">Agent types</h1>
</div>
<br>
<div class="w3-container">
<h2 style="position: relative;">
<font size="6">Agent design</font>
</h2>
<p>The environment type largely determines the agent design</p>
<ul>
<li>Partially observable => agent requires memory (internal state)</li>
<li>Stochastic => agent may have to prepare for contingencies </li>
<li>Multi-agent => agent may need to behave randomly</li>
<li>Static => agent has time to compute a rational decision</li>
<li>Continuous time => continuously operating controller</li>
<li>Unknown physics => need for exploration</li>
<li>Unknown perf. measure => observe/interact with human principal</li>
<br>
</ul>
<h2 style="position: relative;">
<font size="6">Agent types</font>
</h2>
<p>In order of increasing generality and complexity</p>
<ul>
<li>Simple reflex agents (单反射性智能主体)</li>
<img src="./image/lec2_7.png" alt="" style="width:30%;position: relative; left: 280px;">
<br>
<li>Model-based reflex agents(基于模型的反射性智能主体)</li>
<img src="./image/lec2_8.png" alt="" style="width:30%;position: relative; left: 280px;">
<br>
<li>Goal-based agents (基于目标的智能主体)</li>
<img src="./image/lec2_9.png" alt="" style="width:30%;position: relative; left: 280px;">
<br>
<li>Utility-based agents (基于效用的智能主体)</li>
<img src="./image/lec2_10.png" alt="" style="width:30%;position: relative; left: 280px;">
<br>
</ul>
<div class="w3-container w3-teal">
<h1 id="title-1-6">Summary</h1>
</div>
<ul>
<li>An agent interacts with an environment through sensors and actuators</li>
<li>The agent function, implemented by an agent program running on a machine, describes what the agent does in all circumstances </li>
<li>Rational agents choose actions that maximize their expected utility</li>
<li>PEAS descriptions define task environments; precise PEAS specifications are essential and strongly influence agent designs </li>
<li>More difficult environments require more complex agent designs and more sophisticated representations</li>
</ul>
</div>
<br>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
</html>