SlideShare a Scribd company logo
1 of 23
Download to read offline
Machine Evolution(II)
Chapter 4.
2
Genetic Algorithm (I)
 What are the key factors in GA?
 Genetic Representation
– Chromosome
– Population
 Fitness Function
– The fitness is maximized or minimized depending on the problems
 Selection
– Selecting individuals to be parents
– Variation of Selection
 Proportional (Roulette wheel) selection
 Tournament selection
 Ranking-based selection
3
Genetic Algorithm (II)
 Genetic Operators
– Crossover (1-point)
 A crossover point is selected at random and parts of the two parent
chromosomes are swapped to create two offspring with a probability
which is called crossover rate.
– Mutation
 Mutation changes a bit from 0 to 1 or 1 to 0 with a probability which is
called mutation rate.
– Reproduction
 Parent(s) is (are) copied into next generation without crossover and
mutation.
4
Genetic Programming
 Genetic programming uses variable-size tree-
representations rather than fixed-length strings of
binary values.
 Program tree
 Tree = Functions (Nonterminals) + Terminals
5
GP Tree: An Example
 Function set: internal nodes
– Functions, predicates, or actions which take one or
more arguments
 Terminal set: leaf nodes
– Program constants, actions, or functions which take
no arguments
S-expression: (+ 3 (/ ( 5 4) 7))
Terminals = {3, 4, 5, 7}
Functions = {+, , /}
6
Setting Up for a GP Run
 The set of terminals
 The set of functions
 The fitness measure
 The algorithm parameters
– population size, maximum number of generations
– crossover rate and mutation rate
– maximum depth of GP trees etc.
 The method for designating a result and the criterion
for terminating a run.
7
Crossover: Subtree Exchange
+
b
 
a b
+
b
+

a
+

a b

 
a b
+
b
+

a
b


 
a b
8
Mutation

a b
+
b
/

a
+

b
+
b
/

a
-
b a
9
Example: Wall-Following Robot
 Program Representation in GP
– Functions
 AND (x, y) = 0 if x = 0; else y
 OR (x, y) = 1 if x = 1; else y
 NOT (x) = 0 if x = 1; else 1
 IF (x, y, z) = y if x = 1; else z
– Terminals
 Actions: move the robot one cell to each direction
{north, east, south, west}
 Sensory input: its value is 0 whenever the coressponding
cell is free for the robot to occupy; otherwise, 1.
{n, ne, e, se, s, sw, w, nw}
10
A Wall-Following Program
11
Evolving a Wall-Following Robot
 Experimental Setup
– Population size: 5,000
– Fitness measure: the number of cells next to the wall that
are visited during 60 steps
 Perfect score (320)
– One Run (32)  10 randomly chosen starting points
– Termination condition: found perfect solution
– Selection: tournament selection
12
 Creating Next Generation
– 500 programs (10%) are copied directly into next
generation.
 Tournament selection
– 7 programs are randomly selected from the population 5,000.
– The most fit of these 7 programs is chosen.
– 4,500 programs (90%) are generated by crossover.
 A mother and a father are each chosen by tournament
selection.
 A randomly chosen subtree from the father replaces a
randomly selected subtree from the mother.
– In this example, mutation was not used.
Evolving a Wall-Following Robot
13
Two Parents Programs and Their
Children
14
Result (1)
 Generation 0 ----The most fit program (Fitness = 92)
15
Result (2)
 Generation 2
– The most fit program (fitness = 117)
 Smaller than the best one of generation 0, but it does get
stuck in the lower-right corner.
16
Result (3)
 Generation 6
– The most fit program (fitness = 163)
 Following the wall perfectly but still gets stuck in the
bottom-right corner.
17
Result (4)
 Generation 10
– The most fit program (fitness = 320)
 Following the wall around clockwise and moves south to
the wall if it doesn’t start next to it.
18
Result (5)
 Fitness Curve
– Fitness as a function of generation number
 The progressive (but often small) improvement from
generation to generation
19
Applications of EC
 Numerical, Combinatorial Optimization
 System Modeling and Identification
 Planning and Control
 Engineering Design
 Data Mining
 Machine Learning
 Artificial Life
20
Advantages of EC
 No presumptions w.r.t. problem space
 Widely applicable
 Low development & application costs
 Easy to incorporate other methods
 Solutions are interpretable (unlike NN)
 Can be run interactively, accommodate user proposed
solutions
 Provide many alternative solutions
21
Disadvantages of EC
 No guarantee for optimal solution within finite time
 Weak theoretical basis
 May need parameter tuning
 Often computationally expensive, i.e. slow
22
Further Information on EC
 Conferences
– IEEE Congress on Evolutionary Computation (CEC)
– Genetic and Evolutionary Computation Conference (GECCO)
– Parallel Problem Solving from Nature (PPSN)
– Int. Conf. on Artificial Neural Networks and Genetic Algorithms
(ICANNGA)
– Int. Conf. on Simulated Evolution and Learning (SEAL)
 Journals
– IEEE Transactions on Evolutionary Computation
– Evolutionary Computation
– Genetic Programming and Evolvable Machines
– Evolutionary Optimization
23
Assignments:
 Draw the tree structure of the program in figure 4.8 on
page 68.
 Page 69, Ex. 4.5
 Write a program to implement the backpropagation
algorithm for a neural network with two hidden
layers ( C++, Matlab ).
Mail your source code to
lqzhang@sjtu.edu.cn

More Related Content

Similar to 04 2 machine evolution

Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)Benjamin Bengfort
 
Introduction to genetic programming
Introduction to genetic programmingIntroduction to genetic programming
Introduction to genetic programmingabhishek singh
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersUniversity of Huddersfield
 
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systemsTMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systemsIosif Itkin
 
Thesis_Presentation
Thesis_PresentationThesis_Presentation
Thesis_PresentationMaruf Alam
 
Software testing
Software testingSoftware testing
Software testingDIPEN SAINI
 
Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Aleksander Stensby
 
Topic_6
Topic_6Topic_6
Topic_6butest
 
Chapter09.ppt
Chapter09.pptChapter09.ppt
Chapter09.pptbutest
 
Useful Techniques in Artificial Intelligence
Useful Techniques in Artificial IntelligenceUseful Techniques in Artificial Intelligence
Useful Techniques in Artificial IntelligenceIla Group
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimizationanurag singh
 
Lecture on AI and Machine Learning
Lecture on AI and Machine LearningLecture on AI and Machine Learning
Lecture on AI and Machine LearningXiaonan Wang
 

Similar to 04 2 machine evolution (20)

Genetic programming
Genetic programmingGenetic programming
Genetic programming
 
GA.pptx
GA.pptxGA.pptx
GA.pptx
 
Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)Evolutionary Design of Swarms (SSCI 2014)
Evolutionary Design of Swarms (SSCI 2014)
 
Introduction to genetic programming
Introduction to genetic programmingIntroduction to genetic programming
Introduction to genetic programming
 
ga-2.ppt
ga-2.pptga-2.ppt
ga-2.ppt
 
Two methods for optimising cognitive model parameters
Two methods for optimising cognitive model parametersTwo methods for optimising cognitive model parameters
Two methods for optimising cognitive model parameters
 
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systemsTMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
 
Thesis_Presentation
Thesis_PresentationThesis_Presentation
Thesis_Presentation
 
Software testing
Software testingSoftware testing
Software testing
 
Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014Introduction to Genetic Algorithms 2014
Introduction to Genetic Algorithms 2014
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Topic_6
Topic_6Topic_6
Topic_6
 
Chapter09.ppt
Chapter09.pptChapter09.ppt
Chapter09.ppt
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
 
Useful Techniques in Artificial Intelligence
Useful Techniques in Artificial IntelligenceUseful Techniques in Artificial Intelligence
Useful Techniques in Artificial Intelligence
 
Particle swarm optimization
Particle swarm optimizationParticle swarm optimization
Particle swarm optimization
 
50120140504022
5012014050402250120140504022
50120140504022
 
Lecture on AI and Machine Learning
Lecture on AI and Machine LearningLecture on AI and Machine Learning
Lecture on AI and Machine Learning
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 

More from Tianlu Wang

14 pro resolution
14 pro resolution14 pro resolution
14 pro resolutionTianlu Wang
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculusTianlu Wang
 
12 adversal search
12 adversal search12 adversal search
12 adversal searchTianlu Wang
 
11 alternative search
11 alternative search11 alternative search
11 alternative searchTianlu Wang
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculusTianlu Wang
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learningTianlu Wang
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidenceTianlu Wang
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledgeTianlu Wang
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systemsTianlu Wang
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based systemTianlu Wang
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolutionTianlu Wang
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolutionTianlu Wang
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic searchTianlu Wang
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed searchTianlu Wang
 

More from Tianlu Wang (20)

L7 er2
L7 er2L7 er2
L7 er2
 
L8 design1
L8 design1L8 design1
L8 design1
 
L9 design2
L9 design2L9 design2
L9 design2
 
14 pro resolution
14 pro resolution14 pro resolution
14 pro resolution
 
13 propositional calculus
13 propositional calculus13 propositional calculus
13 propositional calculus
 
12 adversal search
12 adversal search12 adversal search
12 adversal search
 
11 alternative search
11 alternative search11 alternative search
11 alternative search
 
10 2 sum
10 2 sum10 2 sum
10 2 sum
 
22 planning
22 planning22 planning
22 planning
 
21 situation calculus
21 situation calculus21 situation calculus
21 situation calculus
 
20 bayes learning
20 bayes learning20 bayes learning
20 bayes learning
 
19 uncertain evidence
19 uncertain evidence19 uncertain evidence
19 uncertain evidence
 
18 common knowledge
18 common knowledge18 common knowledge
18 common knowledge
 
17 2 expert systems
17 2 expert systems17 2 expert systems
17 2 expert systems
 
17 1 knowledge-based system
17 1 knowledge-based system17 1 knowledge-based system
17 1 knowledge-based system
 
16 2 predicate resolution
16 2 predicate resolution16 2 predicate resolution
16 2 predicate resolution
 
16 1 predicate resolution
16 1 predicate resolution16 1 predicate resolution
16 1 predicate resolution
 
15 predicate
15 predicate15 predicate
15 predicate
 
09 heuristic search
09 heuristic search09 heuristic search
09 heuristic search
 
08 uninformed search
08 uninformed search08 uninformed search
08 uninformed search
 

Recently uploaded

Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...home
 
Jeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design projecttbatkhuu1
 
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Servicesonnydelhi1992
 
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiFULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiMalviyaNagarCallGirl
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...wdefrd
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024samlnance
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...anilsa9823
 
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad EscortsCall girls in Ahmedabad High profile
 
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...gurkirankumar98700
 
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...akbard9823
 
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | DelhiMalviyaNagarCallGirl
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKedwardsara83
 
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...anilsa9823
 
FULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | DelhiFULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | DelhiMalviyaNagarCallGirl
 
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service HisarVip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisarsrsj9000
 
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...anilsa9823
 
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girlsparisharma5056
 

Recently uploaded (20)

Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
Authentic # 00971556872006 # Hot Call Girls Service in Dubai By International...
 
Pakistani Deira Call Girls # 00971589162217 # Pakistani Call Girls In Deira D...
Pakistani Deira Call Girls # 00971589162217 # Pakistani Call Girls In Deira D...Pakistani Deira Call Girls # 00971589162217 # Pakistani Call Girls In Deira D...
Pakistani Deira Call Girls # 00971589162217 # Pakistani Call Girls In Deira D...
 
Jeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around EuropeJeremy Casson - An Architectural and Historical Journey Around Europe
Jeremy Casson - An Architectural and Historical Journey Around Europe
 
Editorial sephora annual report design project
Editorial sephora annual report design projectEditorial sephora annual report design project
Editorial sephora annual report design project
 
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort ServiceYoung⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
Young⚡Call Girls in Uttam Nagar Delhi >༒9667401043 Escort Service
 
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | DelhiFULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
FULL ENJOY - 9953040155 Call Girls in Indirapuram | Delhi
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
 
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
(NEHA) Call Girls Ahmedabad Booking Open 8617697112 Ahmedabad Escorts
 
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...Gomti Nagar & High Profile Call Girls in Lucknow  (Adult Only) 8923113531 Esc...
Gomti Nagar & High Profile Call Girls in Lucknow (Adult Only) 8923113531 Esc...
 
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
Aminabad @ Book Call Girls in Lucknow - 450+ Call Girl Cash Payment 🍵 8923113...
 
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | DelhiFULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
FULL ENJOY - 9953040155 Call Girls in Shaheen Bagh | Delhi
 
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAKRAK Call Girls Service # 971559085003 # Call Girl Service In RAK
RAK Call Girls Service # 971559085003 # Call Girl Service In RAK
 
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
Lucknow 💋 Escorts Service Lucknow Phone No 8923113531 Elite Escort Service Av...
 
FULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | DelhiFULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
FULL ENJOY - 9953040155 Call Girls in Shahdara | Delhi
 
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service HisarVip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
Vip Hisar Call Girls #9907093804 Contact Number Escorts Service Hisar
 
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
 
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
Lucknow 💋 Call Girls in Lucknow ₹7.5k Pick Up & Drop With Cash Payment 892311...
 
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
 

04 2 machine evolution

  • 2. 2 Genetic Algorithm (I)  What are the key factors in GA?  Genetic Representation – Chromosome – Population  Fitness Function – The fitness is maximized or minimized depending on the problems  Selection – Selecting individuals to be parents – Variation of Selection  Proportional (Roulette wheel) selection  Tournament selection  Ranking-based selection
  • 3. 3 Genetic Algorithm (II)  Genetic Operators – Crossover (1-point)  A crossover point is selected at random and parts of the two parent chromosomes are swapped to create two offspring with a probability which is called crossover rate. – Mutation  Mutation changes a bit from 0 to 1 or 1 to 0 with a probability which is called mutation rate. – Reproduction  Parent(s) is (are) copied into next generation without crossover and mutation.
  • 4. 4 Genetic Programming  Genetic programming uses variable-size tree- representations rather than fixed-length strings of binary values.  Program tree  Tree = Functions (Nonterminals) + Terminals
  • 5. 5 GP Tree: An Example  Function set: internal nodes – Functions, predicates, or actions which take one or more arguments  Terminal set: leaf nodes – Program constants, actions, or functions which take no arguments S-expression: (+ 3 (/ ( 5 4) 7)) Terminals = {3, 4, 5, 7} Functions = {+, , /}
  • 6. 6 Setting Up for a GP Run  The set of terminals  The set of functions  The fitness measure  The algorithm parameters – population size, maximum number of generations – crossover rate and mutation rate – maximum depth of GP trees etc.  The method for designating a result and the criterion for terminating a run.
  • 7. 7 Crossover: Subtree Exchange + b   a b + b +  a +  a b    a b + b +  a b     a b
  • 9. 9 Example: Wall-Following Robot  Program Representation in GP – Functions  AND (x, y) = 0 if x = 0; else y  OR (x, y) = 1 if x = 1; else y  NOT (x) = 0 if x = 1; else 1  IF (x, y, z) = y if x = 1; else z – Terminals  Actions: move the robot one cell to each direction {north, east, south, west}  Sensory input: its value is 0 whenever the coressponding cell is free for the robot to occupy; otherwise, 1. {n, ne, e, se, s, sw, w, nw}
  • 11. 11 Evolving a Wall-Following Robot  Experimental Setup – Population size: 5,000 – Fitness measure: the number of cells next to the wall that are visited during 60 steps  Perfect score (320) – One Run (32)  10 randomly chosen starting points – Termination condition: found perfect solution – Selection: tournament selection
  • 12. 12  Creating Next Generation – 500 programs (10%) are copied directly into next generation.  Tournament selection – 7 programs are randomly selected from the population 5,000. – The most fit of these 7 programs is chosen. – 4,500 programs (90%) are generated by crossover.  A mother and a father are each chosen by tournament selection.  A randomly chosen subtree from the father replaces a randomly selected subtree from the mother. – In this example, mutation was not used. Evolving a Wall-Following Robot
  • 13. 13 Two Parents Programs and Their Children
  • 14. 14 Result (1)  Generation 0 ----The most fit program (Fitness = 92)
  • 15. 15 Result (2)  Generation 2 – The most fit program (fitness = 117)  Smaller than the best one of generation 0, but it does get stuck in the lower-right corner.
  • 16. 16 Result (3)  Generation 6 – The most fit program (fitness = 163)  Following the wall perfectly but still gets stuck in the bottom-right corner.
  • 17. 17 Result (4)  Generation 10 – The most fit program (fitness = 320)  Following the wall around clockwise and moves south to the wall if it doesn’t start next to it.
  • 18. 18 Result (5)  Fitness Curve – Fitness as a function of generation number  The progressive (but often small) improvement from generation to generation
  • 19. 19 Applications of EC  Numerical, Combinatorial Optimization  System Modeling and Identification  Planning and Control  Engineering Design  Data Mining  Machine Learning  Artificial Life
  • 20. 20 Advantages of EC  No presumptions w.r.t. problem space  Widely applicable  Low development & application costs  Easy to incorporate other methods  Solutions are interpretable (unlike NN)  Can be run interactively, accommodate user proposed solutions  Provide many alternative solutions
  • 21. 21 Disadvantages of EC  No guarantee for optimal solution within finite time  Weak theoretical basis  May need parameter tuning  Often computationally expensive, i.e. slow
  • 22. 22 Further Information on EC  Conferences – IEEE Congress on Evolutionary Computation (CEC) – Genetic and Evolutionary Computation Conference (GECCO) – Parallel Problem Solving from Nature (PPSN) – Int. Conf. on Artificial Neural Networks and Genetic Algorithms (ICANNGA) – Int. Conf. on Simulated Evolution and Learning (SEAL)  Journals – IEEE Transactions on Evolutionary Computation – Evolutionary Computation – Genetic Programming and Evolvable Machines – Evolutionary Optimization
  • 23. 23 Assignments:  Draw the tree structure of the program in figure 4.8 on page 68.  Page 69, Ex. 4.5  Write a program to implement the backpropagation algorithm for a neural network with two hidden layers ( C++, Matlab ). Mail your source code to lqzhang@sjtu.edu.cn