Genetic Algorithms Evolutionary computation Prototypical GA An example

  • Slides: 13
Download presentation
Genetic Algorithms • Evolutionary computation • Prototypical GA • An example: GABIL • Genetic

Genetic Algorithms • Evolutionary computation • Prototypical GA • An example: GABIL • Genetic Programming • Individual learning and population evolution CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Evolutionary Computation 1. Computational procedures patterned after biological evolution 2. Search procedure that probabilistically

Evolutionary Computation 1. Computational procedures patterned after biological evolution 2. Search procedure that probabilistically applies search operators to a set of points in the search space • Also popular with optimization folks CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Biological Evolution Lamarck and others: • Species “transmute” over time Darwin and Wallace: •

Biological Evolution Lamarck and others: • Species “transmute” over time Darwin and Wallace: • Consistent, heritable variation among individuals in population • Natural selection of the fittest Mendel and genetics: • A mechanism for inheriting traits • Genotype Phenotype mapping CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Genetic Algorithm CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Genetic Algorithm CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Representing Hypotheses Represent (Type=Car Minivan) (Tires = Blackwall) by Type Tires 011 10 Represent

Representing Hypotheses Represent (Type=Car Minivan) (Tires = Blackwall) by Type Tires 011 10 Represent IF (Type = SUV) THEN (Nice. Car = yes) by Type Tires Nice. Car 100 11 10 CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Operators for Genetic Algorithms Parent Strings Offspring 101100101001 000011100101 Single Point Crossover 101111100101 000000101001

Operators for Genetic Algorithms Parent Strings Offspring 101100101001 000011100101 Single Point Crossover 101111100101 000000101001 101100101001 000011100101 Two Point Crossover 101011101001 000100100101 101100101001 000011100101 Uniform Crossover 100111100001 00101101 101100101001 Point Mutation 101100100001 CS 5751 Machine Learning Chapter 9 Genetic Algorithms 6

Selecting Most Fit Hypothesis CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Selecting Most Fit Hypothesis CS 5751 Machine Learning Chapter 9 Genetic Algorithms

GABIL (De. Jong et al. 1993) Learn disjunctive set of propositional rules, competitive with

GABIL (De. Jong et al. 1993) Learn disjunctive set of propositional rules, competitive with C 4. 5 Fitness: Fitness(h)=(correct(h))2 Representation: IF a 1=T a 2=F THEN c=T; if a 2=T THEN c = F represented by a 1 a 2 c 10 01 1 a 2 c 11 10 0 Genetic operators: ? ? ? • want variable length rule sets • want only well-formed bitstring hypotheses CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Crossover with Variable-Length Bitstrings Start with a 1 a 2 c h 1 :

Crossover with Variable-Length Bitstrings Start with a 1 a 2 c h 1 : 10 01 1 h 2 : 01 11 0 a 1 a 2 c 11 10 01 0 1. Choose crossover points for h 1, e. g. , after bits 1, 8 h 1 : 1[0 01 1 11 1]0 0 2. Now restrict points in h 2 to those that produce bitstrings with well-defined semantics, e. g. , <1, 3>, <1, 8>, <6, 8> If we choose <1, 3>: h 2 : 0[1 1]1 0 Result is: a 1 a 2 c h 3 : 11 10 0 h 4 : 00 01 1 CS 5751 Machine Learning 10 01 0 a 1 a 2 c 11 11 0 10 01 0 Chapter 9 Genetic Algorithms

GABIL Extensions Add new genetic operators, applied probabilistically 1. Add. Alternative: generalize constraint on

GABIL Extensions Add new genetic operators, applied probabilistically 1. Add. Alternative: generalize constraint on ai by changing a 0 to 1 2. Drop. Condition: generalize constraint on ai by changing every 0 to 1 And, add new field to bit string to determine whether to allow these: a 1 a 2 c 10 01 1 a 2 c 11 10 0 AA DC 1 0 So now the learning strategy also evolves! CS 5751 Machine Learning Chapter 9 Genetic Algorithms

GABIL Results Performance of GABIL comparable to symbolic rule/tree learning methods C 4. 5,

GABIL Results Performance of GABIL comparable to symbolic rule/tree learning methods C 4. 5, ID 5 R, AQ 14 Average performance on a set of 12 synthetic problems: • GABIL without AA and DC operators: 92. 1% accuracy • GABIL with AA and DC operators: 95. 2% accuracy • Symbolic learning methods ranged from 91. 2% to 96. 6% accuracy CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Schemas How to characterize evolution of population in GA? Schema=string containing 0, 1, *

Schemas How to characterize evolution of population in GA? Schema=string containing 0, 1, * (“don’t care”) • Typical schema: 10**0* • Instances of above schema: 101101, 100000, … Characterize population by number of instances representing each possible schema • m(s, t)=number of instances of schema s in population at time t CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Consider Just Selection CS 5751 Machine Learning Chapter 9 Genetic Algorithms

Consider Just Selection CS 5751 Machine Learning Chapter 9 Genetic Algorithms