Documente Academic
Documente Profesional
Documente Cultură
[Read Chapter 9]
[Exercises 9.1, 9.2, 9.3, 9.4]
Evolutionary computation
Prototypical GA
An example: GABIL
Genetic Programming
Individual learning and population evolution
168 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Evoluationary Computation
169 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Biological Evolution
170 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
GA(Fitness; Fitness threshold; p; r; m)
Initialize: P p random hypotheses
Evaluate: for each h in P , compute Fitness(h)
While [maxh Fitness(h)] < Fitness threshold
1. Select: Probabilistically select (1 ? r)p
members of P to add to PS .
Fitness (h i)
Pr(hi) = Pp Fitness(h )
j =1 j
2. Crossover: Probabilistically pairs of select r p
171 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Representing Hypotheses
Represent
(Outlook = Overcast _ Rain) ^ (Wind = Strong)
by
Outlook Wind
011 10
Represent
IF Wind = Strong THEN PlayTennis = yes
by
Outlook Wind PlayTennis
111 10 10
172 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Operators for Genetic Algorithms
Single-point crossover:
11101001000 11101010101
11111000000
00001010101 00001001000
Two-point crossover:
11101001000 11001011000
00111110000
00001010101 00101000101
Uniform crossover:
11101001000 10001000100
10011010011
00001010101 01101011001
173 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Selecting Most Fit Hypotheses
174 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
GABIL [DeJong et al. 1993]
Fitness(h) = (correct(h)) 2
Representation:
IF a = T ^a = F THEN c = T ; IF a = T THEN c = F
1 2 2
represented by
a a c a a c
1 2 1 2
10 01 1 11 10 0
175 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Crossover with Variable-Length Bit-
strings
Start with
a a c 1 2 a a c
1 2
h : 10 01 1
1 11 10 0
h : 01 11 0 10 01 0
2
a a c a a c a a c
1 2 1 2 1 2
4h : 00 01 1 11 11 0 10 01 0
176 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
GABIL Extensions
177 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
GABIL Results
178 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Schemas
179 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Consider Just Selection
= u^n(fs; t) m(s; t)
(t)
Expected number of instances of s after n selections
u
^ (s; t)
E [m(s; t + 1)] = f(t) m(s; t)
180 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Schema Theorem
0 1
u
^ (s; t) d(s )
E [m(s; t+1)] f(t) m(s; t) 1 ? pc l ? 1 (1?pm)o s
BB
@
CC
A
( )
181 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Genetic Programming
sin
x +
^ y
x 2
182 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Crossover
+ +
sin ^ sin
2 + +
x x
x y ^ y
x 2
+ +
sin ^ sin
2 ^ +
x x
x 2 + y
x y
183 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Block Problem
n
e
s
r v u l a i
184 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Primitive functions:
(MS x): (\move to stack"), if block x is on the
table, moves x to the top of the stack and
returns the value T . Otherwise, does nothing
and returns the value F .
(MT x): (\move to table"), if block x is
somewhere in the stack, moves the block at the
top of the stack to the table and returns the
value T . Otherwise, returns F .
(EQ x y): (\equal"), returns T if x equals y, and
returns F otherwise.
(NOT x): returns T if x = F , else returns F
(DU x y): (\do until") executes the expression x
repeatedly until expression y returns the value T
185 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Learned Program
186 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Genetic Programming
187 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
GP for Classifying Images
Crossover, mutation
Create \mating pools" and use rank
proportionate reproduction
188 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Biological Evolution
189 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Baldwin Eect
Assume
Individual learning has no direct in
uence on
individual DNA
But ability to learn reduces need to \hard wire"
traits in DNA
Then
Ability of individuals to learn will support more
diverse gene pool
{ Because learning allows individuals with
various \hard wired" traits to be successful
More diverse gene pool will support faster
evolution of gene pool
190 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Baldwin Eect
Plausible example:
1. New predator appears in environment
2. Individuals who can learn (to avoid it) will be
selected
3. Increase in learning individuals will support
more diverse gene pool
4. resulting in faster evolution
5. possibly resulting in new non-learned traits such
as instintive fear of predator
191 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Computer Experiments on Baldwin
Eect
192 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997
Summary: Evolutionary Program-
ming
193 lecture slides for textbook Machine Learning, T. Mitchell, McGraw Hill, 1997