+ All Categories
Home > Documents > Machine Learning 1

Machine Learning 1

Date post: 23-Feb-2016
Category:
Upload: airlia
View: 38 times
Download: 0 times
Share this document with a friend
Description:
Machine Learning 1. Genetic Algorithms. Who’s This?. Charles Darwin (1809-1882). What’s This?. HMS Beagle The Voyage of the Beagle (1839) (1831-1836). Darwin’s Finches. - PowerPoint PPT Presentation
Popular Tags:
25
Machine Learning 1 Genetic Algorithms
Transcript
Page 1: Machine  Learning 1

Machine Learning 1Genetic Algorithms

Page 2: Machine  Learning 1

Who’s This?

Page 3: Machine  Learning 1

Charles Darwin (1809-1882)

Page 4: Machine  Learning 1

What’s This?

Page 5: Machine  Learning 1

HMS BeagleThe Voyage of the Beagle (1839)

(1831-1836)

Page 6: Machine  Learning 1

Darwin’s Finches

Page 7: Machine  Learning 1

Charles Darwinfrom The Voyage of the Beagle

“The most curious fact is the perfect gradation in the size of the beaks in the different species of Geospiza…. Seeing this gradation and diversity of structure in one small, intimately related group of birds, one might really fancy that from an original paucity of birds in this archipelago, one species had been taken and modified for different ends”

Page 9: Machine  Learning 1

The Genetic Algorithm

Developed◦John Holland, University of Michigan (~1975)

Widely Applied◦Daniel Goldberg (1989)

Metaphor of natural selection applied to optimization problems

Page 10: Machine  Learning 1

Truss Bridge

Page 11: Machine  Learning 1

Truss Optimization: 64 Bars

2 4 6 8

1 3 5 7

16 24 26 28

15 23 25 27

18

20 22

17

19 21

10 12

14

9 11

13

100 K 100 K

70 K

70 K

20 K

20 K

Page 12: Machine  Learning 1

Optimize?

Minimize the Volume of the Truss◦sum(X-Sectional Area of Member X Length)◦NP-Complete*

*Overbay, S., Ganzerli, S., De Palma, P, Brown, A., Stackle, P. (2006). Trusses, NP-Completeness, and Genetic Algorithms. Proceedings of the 17th Analysis and Computation Specialty Conference. St. Louis, MO.

Page 13: Machine  Learning 1

A Simpler Problem: Word Guess

User thinks of a wordPasses the word to the GA KeeperGA guesses the word

Page 14: Machine  Learning 1

Elements of GA

Idea: Representation selects key items of object for computation Chromosome

◦ Representation of a candidate solution◦ Specs for an individual truss◦ A word

Gene◦ An element of a chromosome◦ Specs for a member◦ A letter

Population◦ Set of chromosomes◦ Specs for a set of trusses◦ Set of letter strings representing candidate solutions

Page 15: Machine  Learning 1

Initialize the Population

Idea: Starting point for speciationRandomly generate a set of chromosomesRandomly generate specifications for

trussesRandomly generate letter strings of the

given size

Page 16: Machine  Learning 1

How Large?

Large Enough to Incorporate Genetic Diversity

Divisible by 264 seems to work

Page 17: Machine  Learning 1

Rank Fitness

Idea: Members of the population have characteristics that better suit them for reproduction

◦Function over the population used to rank the population

◦Truss: The smaller the cross-sectional area, the higher the fitness

◦Word Guess: Proximity to correct word

Page 18: Machine  Learning 1

Pair

match.com for trussesor

words(or whatever)

Page 19: Machine  Learning 1

Zero Population Growth

Idea: Food supply (and memory) cannot tolerate unlimited population growthSuppose current population is max: mCurrent population produces n offspringReduce m + n candidate solutions to mExample: m = 64

◦Select 32 population members to survive◦Group them into 16 breeding pairs◦Allow each to produce 2 children

Page 20: Machine  Learning 1

Selecting Mating Population

Idea: Differential ReproductionRandom: Any PP (potential parent) could

reproduceTruncation Selection

◦Top half: survive and reproduce◦Bottom half: die

Stochastic:◦Spin a roulette wheel

Each element has a slot Size of slot is proportional to 1) fitness 2) probability of

being chosen to reproduce

Page 21: Machine  Learning 1

Pairing

Idea: Maximize the fitness of offspringTop-DownTournament

While ( < 16 mating pairs){ Do twice:

Randomly select subset of the population Select 1 parent at random from subsetAdd parents to set of mating pairs

}Many Others

Page 22: Machine  Learning 1

Mate

Idea: Children preserve parents’ genetic informationGenetic Recombination

Target: ChipolteMany Algorithms

◦Illustrated: single point crossover

PA: CHIP OTLE PB: CHIX LOTL

CA: CHIP LOTL CB: CHIX OTLE

Page 23: Machine  Learning 1

Mutation (and genetic drift)

Idea: Population can get stuck in a local minimumSimulates:

◦chemical mutagens◦radiation◦copying errors◦random loss of population members

Randomly perturb a fraction of the population

Page 24: Machine  Learning 1

Convergence

Idea: No further improvement is possible (within acceptable cost)Stop after a fixed number of iterationsStop when a known solution is foundStop when m% of the population is within

n standard deviations of the mean fitness

Page 25: Machine  Learning 1

Putting It Together: The GA Loop

GA(population){ Initialize(population) //generate population

ComputeCost(population) //compute fitnessSort(population) //rankwhile (population not converged on a good-enough solution){SelectBreeders(population) //who reproduces?Pair(breeders) //love and marriageMate(population) //genetic recombinationMutate(population) //jar from local minimaSort(population) //rankTestConvergence(population) //stop?}

}


Recommended