Beruflich Dokumente
Kultur Dokumente
AND
GENE EXPRESSION PROGRAMMING
Marek Ostaszewski
OUTLINE
Evolutionary Algorithms
Elements Yes
Stopping
condition
Chromosome (representation)
No
Individual (solution) P' = selection(P)
representation
Finish
EVOLUTIONARY
ALGORITHMS (EA)
Initialize population P
Generation g = 0
Inspired by the process of
natural evolution Evaluate P
representation
Finish
GENETIC ALGORITHMS
(GA) (1)
Chromosome is binary string
Solution is a value encoded by the chromosome 3
s1
Example:
1.5
optimize f(x) = x2
1 s3
Solution - x value
0.5
Fitness - y value s2
-5 -4 -3 -2 -1 0 1 2 3
-0.5
GENETIC ALGORITHMS
(2)
Parent 1
0 0 1 1 1 0 0 1 1 0 1
Crossover point
Modifications are Parent 2
straightforward 1 0 0 0 1 1 1 0 0 0 0
Crossover Offspring 1
0 0 1 1 1 0 1 0 0 0 0
s1: y = ln(x)
0 1 2 3 4 5 6 7 8
s2: y = 4/x+2.4
-1
GENETIC
PROGRAMMING (3)
Parent 1 Parent 2 +
Modifications are * / /
problematic + sin b a a b a a
Mutation
Problems Offspring 1 Offspring 2 +
/ /
Syntactic correctness *
+ a b a b a a
Tree bloat sin
a b a
GENETIC
PROGRAMMING (3)
Modifications are
problematic Parent + Offspring +
Crossover / * /
Mutation a b a a + a a a
Problems ln b
Mutation point
Syntactic correctness b
Tree bloat
GENETIC
PROGRAMMING (3)
Modifications are
problematic Parent + Offspring +
Crossover / * /
Mutation a b a a + a a a
Problems ln b
Mutation point
Syntactic correctness b
Tree bloat
GP - SUMMARY
Problems
Break (10 min)
GENE EXPRESSION
PROGRAMMING (GEP) (1)
Chromosome (k-expression) is a sequence of symbols
from the set of terminals (T) and functions (F)
Solution (expression tree) is a program decoded from
k-expression
Expression K - expression
Tree
+ / a b c d
+ /
a b c d
GENE EXPRESSION
PROGRAMMING (2)
ln
Head - F and T
a * b
Tail - only T
/ *c
Head Tail
+ ln a * b / c b d a b a c d
Unused part
GENE EXPRESSION
PROGRAMMING (4)
Expression Expression
Tree + Tree +
ln ln
a * b a * +
/ *c / *c b d
*
b *d a b
*
Problem definition
Fitness calculation
Sensitivity
Specificity
Training set
Testing set
RESULTS
0.96
0.92
Value
0.88
0.84
0.8
5 10 20 30 40 50 60
Time window
FUNCTION FINDING
WITH GEP
Problem definition
Fitness calculation
Results
PROBLEM / FITNESS
Mexican Hat
a2 +b2
f (x, y) = 1 − (a + b ) ∗ e
2 2 − 2
Found
f (x, y) =
((1 + sin(sin(x − ln(y) + 2)) + sin(sin(2sin(−y )))) ∗
2
sin(−1)
(ey−2
∗ sin(1 − sin(x + y)))) + ey −x+1
e
SUMMARY
Challenging issues
Search guidance
Solution structure
THANK YOU
Questions ?