Neuro-Computing Lecture 6

Slides:



Advertisements
Similar presentations
Genetic Algorithms Chapter 3. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Genetic Algorithms GA Quick Overview Developed: USA in.
Advertisements

Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
Student : Mateja Saković 3015/2011.  Genetic algorithms are based on evolution and natural selection  Evolution is any change across successive generations.
CSM6120 Introduction to Intelligent Systems Evolutionary and Genetic Algorithms.
Tuesday, May 14 Genetic Algorithms Handouts: Lecture Notes Question: when should there be an additional review session?
1 Wendy Williams Metaheuristic Algorithms Genetic Algorithms: A Tutorial “Genetic Algorithms are good at taking large, potentially huge search spaces and.
Evolutionary Computational Intelligence
Genetic Algorithms (GAs)
Genetic Algorithm for Variable Selection
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Evolutionary Computation 22c: 145, Chapter 9. What is Evolutionary Computation? A technique borrowed from the theory of biological evolution that is used.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Algorithms: A Tutorial
Heuristic Optimization Methods
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
1 An Overview of Evolutionary Computation 조 성 배 연세대학교 컴퓨터과학과.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Intro. ANN & Fuzzy Systems Lecture 36 GENETIC ALGORITHM (1)
Genetic algorithms Prof Kang Li
Introduction to GAs: Genetic Algorithms How to apply GAs to SNA? Thank you for all pictures and information referred.
1 Genetic Algorithms “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations.
Local Search: walksat, ant colonies, and genetic algorithms.
Genetic Algorithms Genetic Algorithms – What are they? And how they are inspired from evolution. Operators and Definitions in Genetic Algorithms paradigm.
1 “Genetic Algorithms are good at taking large, potentially huge search spaces and navigating them, looking for optimal combinations of things, solutions.
GENETIC ALGORITHM A biologically inspired model of intelligence and the principles of biological evolution are applied to find solutions to difficult problems.
Derivative Free Optimization G.Anuradha. Contents Genetic Algorithm Simulated Annealing Random search method Downhill simplex method.
A Simple Example The Traveling Salesman Problem: Find a tour of a given set of cities so that each city is visited only once the total distance traveled.
1 Genetic Algorithms and Ant Colony Optimisation.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Voicu Groza, 2008 SITE, HARDWARE/SOFTWARE CODESIGN OF EMBEDDED SYSTEMS 1 Hardware/Software Codesign of Embedded Systems OPTIMIZATION Voicu Groza.
Introduction to Genetic Algorithms. Genetic Algorithms We’ve covered enough material that we can write programs that use genetic algorithms! –More advanced.
Edge Assembly Crossover
Genetic Algorithms. 2 Overview Introduction To Genetic Algorithms (GAs) GA Operators and Parameters Genetic Algorithms To Solve The Traveling Salesman.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
Introduction to GAs: Genetic Algorithms Quantitative Analysis: How to make a decision? Thank you for all pictures and information referred.
Department of Computer Science Lecture 6: Genetic Algorithms
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
Genetic Algorithms.
School of Computer Science & Engineering
Introduction to Genetic Algorithm (GA)
CSC 380: Design and Analysis of Algorithms
Subject Name: Operation Research Subject Code: 10CS661 Prepared By:Mrs
Comparing Genetic Algorithm and Guided Local Search Methods
metaheuristic methods and their applications
Genetic Algorithms: A Tutorial
Metaheuristic methods and their applications. Optimization Problems Strategies for Solving NP-hard Optimization Problems What is a Metaheuristic Method?
GENETIC ALGORITHMS & MACHINE LEARNING
Genetic Algorithms Chapter 3.
EE368 Soft Computing Genetic Algorithms.
Traveling Salesman Problem by Genetic Algorithm
Population Based Metaheuristics
Genetic Algorithms: A Tutorial
CSC 380: Design and Analysis of Algorithms
Population Methods.
Presentation transcript:

Neuro-Computing Lecture 6 Genetic Algorithm

Suggested Reading Konar,A.A., ” Computational Intelligence Principles, Techniques and Applications”, Springer, 2005. [Chapter 12] Metaheristic Procedures for Training Neural Networks, Springer, 2006:Ch 6 Introduction to Genetic Algorithms, S.N. Sivanandam and S.N. Deepa, Springer, 2008 : Ch 2,3,4,6,8

The Genetic Algorithm Directed search algorithms based on the mechanics of biological evolution Developed by John Holland, University of Michigan (1970’s) Provide efficient, effective techniques for optimization and Machine Learning applications

The Genetic Algorithm (cont.) Problem Solving by Search Global Search Heuristic Among Meta-heuristic algorithms To find: Genetic Representation (Problem Dependent) A Fitness Function (Problem Dependent) Applications in bioinformatics, computer science, engineering, economics, chemistry, mathematics, etc.

Search Techniques Categorization

Components of a GA A complex problem to solve and: Encoding technique (gene, chromosome) Initialization procedure (creation) Evaluation function (environment) Selection of parents (reproduction) Genetic operators (mutation, recombination) Parameter settings (practice and art)

Simple GA Pseudo-Code Initialize Population; { Initialize Population; Evaluate each Individual in Population; While (!Termination_Criteria_Satisfied) Select Parents for Reproduction; Perform Recombination and Mutation; Evaluate Population; }

GA Evolution Accuracy in Percent Generations 100 50 10 Example of monitoring/diagnostic 10 0 20 40 60 80 100 120 Generations http://www.sdsc.edu/skidl/projects/bio-SKIDL/

Genetic Algorithm Learning Fitness criteria -70 -60 -50 -40 Example of diagnostic (2) 0 50 100 150 200 Generations http://www.demon.co.uk/apl385/apl96/skom.htm

Schematic Convergence Fitness value (scaled) GA variability across replications should be noted! iteration

The GA Cycle of Reproduction children reproduction modification modified children parents population evaluation evaluated children deleted members discard

Population/Selection (1) Chromosomes could be: Bit strings (0101 ... 1100) Real numbers (43.2 -33.1 ... 0.0 89.2) Permutations of element (E11 E3 E7 ... E1 E15) Lists of rules (R1 R2 R3 ... R22 R23) Program elements (genetic programming) Weights of NNs!! (Metaheuristic NN Training) Etc.

Population/Selection (2): Holland’s Roulette Selection Individuals are selected with the probability proportional to their relative fitness

©http://www.softchitech.com/ec_intro_html

Population/Selection (3): Elitist Strategy Individuals with the highest fitness is always copied into the next generation. Unlike the generation gap technique, the individual in the elitist strategy is not changed after each generation.

Reproduction children reproduction parents population Parents are selected at random with selection chances biased in relation to chromosome evaluations.

Chromosome Modification Modifications are stochastically triggered Operator types are: Mutation Crossover (recombination) children modification modified children

Mutation: Local Modification Before: (0 1 1 1 0 1 1 0) After: (0 1 1 0 0 1 1 0) Before: (1.38 -69.4 326.44 0.1) After: (1.38 -67.5 326.44 0.1) Causes movement in the search space (local or global) Restores lost information to the population

Crossover: Recombination Definition: To combine two or more individuals to form new ones (main operator for local search) Recombination Operators on Binary Representation: Single-Point Crossover (SPX) Double-Point Crossover (DPX) Uniform Crossover (UX)

Initial Strings Offspring Single-Point Double-Point Uniform 11000101 01011000 01101010 11000101 01011001 01111000 00100100 10111001 01111000 00100100 10111000 01101010 Double-Point 11000101 01011000 01101010 11000101 01111001 01101010 00100100 10111001 01111000 00100100 10011000 01111000 Uniform 11000101 01011000 01101010 01000101 01111000 01111010 00100100 10111001 01111000 10100100 10011001 01101000

Evaluation The evaluator decodes a chromosome and assigns it a fitness measure The evaluator is the only link between a classical GA and the problem it is solving modified children evaluated children evaluation

Deletion Generational GA: entire populations replaced with each iteration Steady-state GA: a few members replaced each generation population discarded members discard

An Abstract Example Distribution of Individuals in Generation 0 Distribution of Individuals in Generation N

A Simple Example The Traveling Salesman Problem: Find a tour of a given set of cities so that each city is visited only once the total distance traveled is minimized

TSP

Representation Representation is an ordered list of city numbers known as an order-based GA. 1) London 3) Dunedin 5) Beijing 7) Tokyo 2) Venice 4) Singapore 6) Phoenix 8) Victoria CityList1 (3 5 7 2 1 6 4 8) CityList2 (2 5 7 6 8 1 3 4)

Crossover Crossover combines inversion and recombination: * * Parent1 (3 5 7 2 1 6 4 8) Parent2 (2 5 7 6 8 1 3 4) Child (5 8 7 2 1 6 3 4) This operator is called the Order1 crossover.

Mutation Mutation involves reordering of the list: * * Before: (5 8 7 2 1 6 3 4) After: (5 8 6 2 1 7 3 4) Flips each bit in the string with the probability

TSP Example: 30 Cities

Solution i (Distance = 941)

Solution j(Distance = 800)

Solution k(Distance = 652)

Best Solution (Distance = 420)

Hybridization: GA-XX for Training NNs Representation Pseudo Code

Hybridization: GA-XX for Training NNs (2) Distribution of the variables Group together the input weights and biases for each unit (as a block) Weak Hybridization V.S. Strong Hybridization: Specific Operator versus combination of different algorithms XX : Replace the mutation operator with the XX algorithm (with probability pt)

Sample Hybridization Candidates Back Propagation Levenberg-Marquardt

Common Fitness Functions

Benefits of Genetic Algorithms Concept is easy to understand Modular, separate from application Supports multi-objective optimization Good for “noisy” environments Always an answer; answer gets better with time Inherently parallel; easily distributed

Benefits of Genetic Algorithms (cont.) Many ways to speed up and improve a GA-based application as knowledge about problem domain is gained Easy to exploit previous or alternate solutions Flexible building blocks for hybrid applications

When to Use a GA Alternate solutions are too slow or overly complicated Need an exploratory tool to examine new approaches Problem is similar to one that has already been successfully solved by using a GA Want to hybridize with an existing solution

Some GA Application Types

Remarks for GA Practitioners Choosing basic implementation issues: representation population size, mutation rate, ... selection, deletion policies crossover, mutation operators Termination Criteria Performance, scalability Solution is only as good as the evaluation function (often the hardest part)

Discussion (1) Global Optimum V.S. Local optimum : How to sacrifice short-term fitness to gain longer-term fitness? How to maintain diversity? We may impose a "niche penalty“ i.e. any group of individuals of sufficient similarity have a penalty added, which will reduce the representation of that group in subsequent generations, permitting other (less similar) individuals to be maintained in the population.

Discussion (2) How to operating on dynamic data ? genomes begin to converge early and may no longer be valid for later data. Increasing genetic diversity and preventing early convergence, either by increasing the probability of mutation when the solution quality drops (triggered hypermutation), or by occasionally introducing entirely new, randomly generated elements into the gene pool (random immigrants). Use "comma strategy" in which parents are not maintained and new parents are selected only from offspring.

Discussion (3) GAs cannot effectively solve problems in which the only fitness measure is right/wrong: no way to converge on the solution. (No hill to climb) In these cases, a random search may find a solution as quickly as a GA! As all ML problems it is worth tuning the parameters such as mutation probability, recombination probability and population size to find reasonable settings for the problem class. A very small mutation rate may lead to genetic drift. A recombination rate that is too high may lead to premature convergence of the genetic algorithm. A mutation rate that is too high may lead to loss of good solutions unless there is elitist selection. There are theoretical but not yet practical upper and lower bounds for these parameters that can help guide selection.