genetic programming: hypothesis evolution by nam nguyen greg nelson

42
Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Upload: abigayle-hodges

Post on 16-Dec-2015

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Genetic Programming:Hypothesis Evolution

By Nam Nguyen Greg Nelson

Page 2: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Introduction To Evol An attempt to more directly simulate the

process of natural selection. The system is set up as a large board with

agents and examples. Each agent executes on its own thread. Agents live on the board and wander

around processing examples and interacting with other agents.

Two kinds of agents: helpers and fighters. Examples act as food for the agents.

Page 3: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Goal Implement a new genetic algorithm that, rather than

being based on probabilities, actually models the process of natural selection.

Build a dynamic, intuitive learning system that very closely emulates natural selection.

Find a balance in parameter settings (how much "life" an agent starts with, what the "age" threshold is in order to breed, how much an agent's "life" is boosted by eating an example, etc...); some settings cause agents to breed like rabbits and grow to doomsday, others lead to almost immediate extinction.

Page 4: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Problem Representation Environment is represented by a board. All

entities live on this board. Agents walk around, eat examples, breed, share

information, and fight with other agents.

E

E

Page 5: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Hierarchy Tree

Entity

ExampleAgent

Helper Fighter

Page 6: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Play Tennis Example Example 1(Outlook = Sunny) && (Temp = Hot) && (Humidity = High)&& (Wind = Weak) Then (PlayTennis = Yes)

Bit string10010010101 (First three bits for Outlook, etc…)

All hypotheses and examples are represented with this notation.

Page 7: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Agents The agents contain a genotype and

phenotype. Both represent hypotheses. The phenotype is used (and changed); the

genotype is inherited from birth, never changed, and passed on to future generations.

Agents also interact by breeding, helping each other, or fighting.

Page 8: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Examples Continued Examples are created from the training

data set and act as food for the agents. When an agent comes upon an example

it does one of two things:1. If it classifies it correctly, it "eats" it, which increases its strength and likelihood for survival.2. If not, it tries to learn something from it (change some of the phenotype bits to match the example’s).

Page 9: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

When Helpers Meet Other Helpers

Helper 1

0110100

Helper 2

1110110

Page 10: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

You are tooyoung. We should

help each other.

Okay, let’s be friends!

Helper 1

0110100

Helper 2

1110110

Page 11: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

This is what I learned

Here’s myknowledge

Helper 1

0110100

Helper 2

1110110

Bit 5 is true

Bit 6 is true

Page 12: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

When Helpers Meet Other Helpers: part 2

Helper 1

Life 500 Helper 2

Life 800

Page 13: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

How oldare you?

Page 14: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

I am above threshold

Page 15: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson
Page 16: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson
Page 17: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Censored

Page 18: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Helper 1

Life 250Helper 2

Life 550

Helper 3 (Baby)

Life 500

Several Cycles Later…

Page 19: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

When Fighters Meet Other Agents

Fighter 1

Page 20: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Quit stealing my mates and examples

Page 21: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

No, you stop!

Page 22: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

LightningBolt

Page 23: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson
Page 24: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson
Page 25: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

POW!

AH HA HA HA!

Page 26: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

When Fighters Meet Wise Helpers

Helper 1

Life 900

Fighter 1

Life 800

Page 27: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Must… fight!

Page 28: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

That agent istoo cute tobully…

Hello! How are you?

Page 29: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Get over here!

Page 30: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Zip!

AHHHHH!

Page 31: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Whoosh

Page 32: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson
Page 33: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson
Page 34: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Smooch!

Page 35: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Helper 1

Life 650

Fighter 1

Life 550

Fighter 2 Baby

Life 500

Several Cycles Later…..

Page 36: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Learning Algorithm Agents move around the board

learning from examples and each other.

The more successful agents will breed more readily, while the less successful agents will be killed by starvation and combat.

Page 37: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Performance Seemed to learn simple tasks such as

playTennis and mushroom.- classified 80% of the playTennis set correctly- classified 92% of mushroom test set correctly

. This is because it “learned” to classify everything as edible.

Performed dismally on other tasks such as voting.

Varying parameters might improve stability and speedup convergence.

Page 38: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Problems Population control (doomsday and

extinction, memory issues). Too much interaction between

agents, not enough eating! Disturbing bug (fixed): agents would

have a child and then immediately mate with it!

Page 39: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Conclusions Hard to control/predict a dynamic

population of agents acting independently.

Nondeterministic: different results every time, although similar trends (above).

With lots of work, we think this could work very well.

Page 40: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Sample log file . . .(Fighter3,9999692) at [12,3] ate (person161,99) at [12,3](Fighter3,10499691) at [12,3] ate (person161,98) at [12,3](Fighter0,14499692) at [20,1] is breeding with (Helper0,8999691) at [20,1]!(Fighter0,14499692) at [20,1] begat (Fighter20,500000) at [20,1]!(Fighter20,499999) at [19,1] beat up (Fighter19,499987) at [19,1]!(Fighter19,499987) at [19,1] is dying!(Fighter0,14499686) at [20,2] is breeding with (Helper0,8999685) at [20,2]!(Fighter0,14499686) at [20,2] begat (Fighter21,500000) at [20,2]!(Fighter21,500000) at [20,2] got beat up by (Fighter0,14499685) at [20,2](Fighter21,500000) at [20,2] is dying!(Helper1,13999675) at [18,0] ate (person77,98) at [18,0](Fighter0,14499676) at [21,4] is breeding with (Helper0,8999675) at [21,4]!(Fighter0,14499676) at [21,4] begat (Fighter22,500000) at [21,4]!(Fighter3,10999672) at [18,0] ate (person77,97) at [18,0](Helper2,9499670) at [5,16] ate (person112,99) at [5,16](Fighter3,11499670) at [18,24] ate (person52,95) at [18,24](Helper2,9999665) at [6,17] ate (person130,100) at [6,17] . . .

Page 41: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Sample outputTime limit reached: terminating.The following 42 rules were learned from the training set:

Helper1, RANK 2670: IF ((handicappedkids=y) OR (handicappedkids=n)) AND ... AND ((export_act_safrica=y)) THEN Democrat...

Page 42: Genetic Programming: Hypothesis Evolution By Nam Nguyen Greg Nelson

Questions…

???