Genetic algorithms for neural networks An introduction.

Slides:



Advertisements
Similar presentations
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Advertisements

A First Course in Genetic Algorithms
CS6800 Advanced Theory of Computation
Biologically Inspired AI (mostly GAs). Some Examples of Biologically Inspired Computation Neural networks Evolutionary computation (e.g., genetic algorithms)
Genetic Algorithms Representation of Candidate Solutions GAs on primarily two types of representations: –Binary-Coded –Real-Coded Binary-Coded GAs must.
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
Non-Linear Problems General approach. Non-linear Optimization Many objective functions, tend to be non-linear. Design problems for which the objective.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
Introduction to Genetic Algorithms Yonatan Shichel.
1 Genetic Algorithms. CS The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Iterative Improvement Algorithms
Genetic Algorithm for Variable Selection
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
1 Genetic Algorithms. CS 561, Session 26 2 The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2004.
Chapter 6: Transform and Conquer Genetic Algorithms The Design and Analysis of Algorithms.
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Genetic Algorithm.
Genetic Algorithms and Ant Colony Optimisation
Evolving a Sigma-Pi Network as a Network Simulator by Justin Basilico.
Slides are based on Negnevitsky, Pearson Education, Lecture 12 Hybrid intelligent systems: Evolutionary neural networks and fuzzy evolutionary systems.
Integrating Neural Network and Genetic Algorithm to Solve Function Approximation Combined with Optimization Problem Term presentation for CSC7333 Machine.
Cristian Urs and Ben Riveira. Introduction The article we chose focuses on improving the performance of Genetic Algorithms by: Use of predictive models.
Soft Computing Lecture 18 Foundations of genetic algorithms (GA). Using of GA.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
Genetic algorithms Prof Kang Li
Optimization in Engineering Design Georgia Institute of Technology Systems Realization Laboratory Mixed Integer Problems Most optimization algorithms deal.
Genetic Algorithms by using MapReduce
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic Algorithms Michael J. Watts
S J van Vuuren The application of Genetic Algorithms (GAs) Planning Design and Management of Water Supply Systems.
Applying Genetic Algorithm to the Knapsack Problem Qi Su ECE 539 Spring 2001 Course Project.
Genetic Algorithms Genetic Algorithms – What are they? And how they are inspired from evolution. Operators and Definitions in Genetic Algorithms paradigm.
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
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.
2005MEE Software Engineering Lecture 11 – Optimisation Techniques.
Learning by Simulating Evolution Artificial Intelligence CSMC February 21, 2002.
1 Genetic Algorithms and Ant Colony Optimisation.
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
Genetic Algorithms Przemyslaw Pawluk CSE 6111 Advanced Algorithm Design and Analysis
Genetic Algorithms CSCI-2300 Introduction to Algorithms
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
ECE 103 Engineering Programming Chapter 52 Generic Algorithm Herbert G. Mayer, PSU CS Status 6/4/2014 Initial content copied verbatim from ECE 103 material.
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.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
Parallel Genetic Algorithms By Larry Hale and Trevor McCasland.
Waqas Haider Bangyal 1. Evolutionary computing algorithms are very common and used by many researchers in their research to solve the optimization problems.
GENETIC ALGORITHM Basic Algorithm begin set time t = 0;
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
1 Autonomic Computer Systems Evolutionary Computation Pascal Paysan.
Why do GAs work? Symbol alphabet : {0, 1, * } * is a wild card symbol that matches both 0 and 1 A schema is a string with fixed and variable symbols 01*1*
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Overview Last two weeks we looked at evolutionary algorithms.
An Evolutionary Algorithm for Neural Network Learning using Direct Encoding Paul Batchis Department of Computer Science Rutgers University.
Breeding Swarms: A GA/PSO Hybrid 簡明昌 Author and Source Author: Matthew Settles and Terence Soule Source: GECCO 2005, p How to get: (\\nclab.csie.nctu.edu.tw\Repository\Journals-
Genetic Algorithms And other approaches for similar applications Optimization Techniques.
Genetic Algorithm(GA)
Evolutionary Design of the Closed Loop Control on the Basis of NN-ANARX Model Using Genetic Algoritm.
Genetic Algorithms and Evolutionary Programming A Brief Overview.
 Presented By: Abdul Aziz Ghazi  Roll No:  Presented to: Sir Harris.
Genetic (Evolutionary) Algorithms CEE 6410 David Rosenberg “Natural Selection or the Survival of the Fittest.” -- Charles Darwin.
Introduction to Genetic Algorithms
Genetic Algorithms.
Bulgarian Academy of Sciences
EE368 Soft Computing Genetic Algorithms.
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Presentation transcript:

Genetic algorithms for neural networks An introduction

Genetic algorithms Why use genetic algorithms? –“What aren’t genetic algorithms?” What are genetic algorithms? What to avoid Using genetic algorithms with neural networks

Why use genetic algorithms?

What aren’t genetic algorithms? Hill-climbing algorithms Enumerative algorithms Random searches –Guesses –Ask an expert Educated guesses

Hill-climbing Calculus based approach

But… ? ?

? ? ? ? ? ?

More realistically? ? ? ? ? ? ? ? ? ? ? ? ? Noisy? Discontinuous?

Robust scheme

Genetic algorithms Cope with non-linear functions Cope with large numbers of variables efficiently Cope with modelling uncertainties Do not require knowledge of the function

What are genetic algorithms? Chromosome Population

Circle of life Good Bad

Chromosome A collection of genes [x i1, x i2, x i3, x i4, …]

Fitness Ranked by a fitness factor Proportional to the likelihood of breeding Action of the algorithm is to maximise fitness

Breeding and crossover Parents selected randomly with a probability proportional to fitness –Roulette wheel algorithm Genes are crossed over between parents [x 11, x 12, x 13, x 14 ] [x 21, x 22, x 23, x 24 ] [x 11, x 22, x 23, x 24 ] [x 21, x 12, x 13, x 14 ]

Mutation Small (random) variation in a gene: [x i1, x i2, x i3, x i4 ] --> [x i1, x i2, x i3 +∂, x i4 ]

Circle of life Good Bad

Genetic algorithms Work on populations, not single points Use an objective function (fitness) only, rather than derivatives or other information Use probabilistic rules rather than deterministic rules Operate on an encoded set of values (a chromosome) rather than the values themselves

Potential problems GA deceptive functions Premature and postmature convergence Excessive mutation Application to constrained problems –Neural networks, particularly The meaning of fitness

Deceptive functions and premature convergence A function which selects for one gene when a combination would be better Can eliminate “better” genes Avoided by –Elitism –Multiple populations –Mutation (which reintroduces genes) –Fitness scaling

Postmature convergence When all of a population performs well, selection pressures wane Avoided by fitness scaling (be careful!)

Excessive mutation Too little mutation = loss of genes Too much mutation = random walk

Application to constrained problems Neural networks and genetic algorithms are by nature unconstrained –i.e they can take any value Must avoid unphysical values Restrict mutation Punish through fitness function

The meaning of fitness Genetic algorithms maximise fitness Therefore fitness must be carefully defined What are you actually trying to do?

When to stop? How long do we run the algorithm for? –Until we find a solution –Until a fixed number of generations has been produced –Until there is no further improvement –Until we run out of time or money…?

Genetic algorithms for Bayesian neural networks Generally want to find an optimised input set for a particular defined output

Define “fitness” Need a function that includes target and uncertainty:

Define the chromosome Set of inputs to the network except –Derived inputs must be removed e.g. if you have both t and ln(t), or T and exp(-1/T), only one can be included –Prevents unphysical input sets being found

Create the populations Chromosomes are randomly generated –(avoid non-physical values) –Population size must be considered –20 is a good start Best to use more than one population –Trade-off between coverage and time –Three is good

Run the algorithm! 1.Decode chromosomes to NN inputs (i.e. calculate any other inputs) 2.Make predictions for each chromosome if the target is met or enough generations have happened, stop 3.Calculate fitness for each chromosome 4.Preserve the best chromosome (elitism) 5.Breed 18 new chromosomes by crossbreeding 6.Mutate one (non-elite) gene at random 7.Create new chromosome at random 8.Go back to 1