Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Friday, 16 February 2007 William.

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

Genetic Algorithms.
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.
1 Lecture 8: Genetic Algorithms Contents : Miming nature The steps of the algorithm –Coosing parents –Reproduction –Mutation Deeper in GA –Stochastic Universal.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
A simple EA and Common Search Operators Temi avanzati di Intelligenza Artificiale - Lecture 2 Prof. Vincenzo Cutello Department of Mathematics and Computer.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Genetic Algorithm for Variable Selection
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Intro to AI Genetic Algorithm Ruth Bergman Fall 2002.
Chapter 14 Genetic Algorithms.
CS 8751 ML & KDDGenetic Algorithms1 Evolutionary computation Prototypical GA An example: GABIL Genetic Programming Individual learning and population evolution.
Tutorial 1 Temi avanzati di Intelligenza Artificiale - Lecture 3 Prof. Vincenzo Cutello Department of Mathematics and Computer Science University of Catania.
Computing & Information Sciences Kansas State University Lecture 37 of 42 CIS 530 / 730 Artificial Intelligence Lecture 37 of 42 Genetic Programming Discussion:
Genetic Algorithm.
Evolutionary Intelligence
Computing & Information Sciences Kansas State University Friday, 21 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 35 of 42 Friday, 21 November.
Introduction to Genetic Algorithms and Evolutionary Computation
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
Schemata Theory Chapter 11. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Theory Why Bother with Theory? Might provide performance.
CS Machine Learning Genetic Algorithms (II).
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Lecture 8: 24/5/1435 Genetic Algorithms Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Computing & Information Sciences Kansas State University Monday, 27 Nov 2006CIS 490 / 730: Artificial Intelligence Lecture 38 of 42 Monday, 27 November.
Computing & Information Sciences Kansas State University Wednesday, 19 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 34 of 42 Wednesday, 19 November.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
1 Machine Learning: Lecture 12 Genetic Algorithms (Based on Chapter 9 of Mitchell, T., Machine Learning, 1997)
Soft Computing A Gentle introduction Richard P. Simpson.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
1 Chapter 14 Genetic Algorithms. 2 Chapter 14 Contents (1) l Representation l The Algorithm l Fitness l Crossover l Mutation l Termination Criteria l.
GENETIC ALGORITHM A biologically inspired model of intelligence and the principles of biological evolution are applied to find solutions to difficult problems.
Evolutionary Computation Dean F. Hougen w/ contributions from Pedro Diaz-Gomez & Brent Eskridge Robotics, Evolution, Adaptation, and Learning Laboratory.
Genetic Algorithms. Evolutionary Methods Methods inspired by the process of biological evolution. Main ideas: Population of solutions Assign a score or.
Machine Learning Chapter 9. Genetic Algorithm
Genetic Algorithms ML 9 Kristie Simpson CS536: Advanced Artificial Intelligence Montana State University.
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*
Chapter 9 Genetic Algorithms.  Based upon biological evolution  Generate successor hypothesis based upon repeated mutations  Acts as a randomized parallel.
Machine Learning CS 165B Spring Course outline Introduction (Ch. 1) Concept learning (Ch. 2) Decision trees (Ch. 3) Ensemble learning Neural Networks.
Edge Assembly Crossover
Genetic Algorithms Genetic algorithms provide an approach to learning that is based loosely on simulated evolution. Hypotheses are often described by bit.
Genetic Algorithms What is a GA Terms and definitions Basic algorithm.
MAE 552 Heuristic Optimization Instructor: John Eddy Lecture #12 2/20/02 Evolutionary Algorithms.
Chapter 12 FUSION OF FUZZY SYSTEM AND GENETIC ALGORITHMS Chi-Yuan Yeh.
EE749 I ntroduction to Artificial I ntelligence Genetic Algorithms The Simple GA.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 5: Power of Heuristic; non- conventional search.
CpSc 881: Machine Learning Genetic Algorithm. 2 Copy Right Notice Most slides in this presentation are adopted from slides of text book and various sources.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Wednesday, 21 February 2007.
Computing & Information Sciences Kansas State University Monday, 27 Nov 2006CIS 490 / 730: Artificial Intelligence Lecture 38 of 42 Monday, 27 November.
Computing & Information Sciences Kansas State University Monday, 24 Nov 2008CIS 530 / 730: Artificial Intelligence Lecture 36 of 42 Monday, 24 November.
Chapter 9 Genetic Algorithms Evolutionary computation Prototypical GA
Chapter 9 Genetic Algorithms
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Monday, 25 February 2008 William.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
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 Algorithms. Underlying Concept  Charles Darwin outlined the principle of natural selection.  Natural Selection is the process by which evolution.
Genetic Algorithm Dr. Md. Al-amin Bhuiyan Professor, Dept. of CSE Jahangirnagar University.
Artificial Intelligence By Mr. Ejaz CIIT Sahiwal Evolutionary Computation.
Genetic Algorithms. Solution Search in Problem Space.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
Computing & Information Sciences Kansas State University Lecture 42 of 42 CIS 732 Machine Learning & Pattern Recognition Lecture 42 of 42 Genetic Programming.
Introduction to Genetic Algorithms
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
CS621: Artificial Intelligence
دانشگاه صنعتی امیرکبیر
A Gentle introduction Richard P. Simpson
Machine Learning: UNIT-4 CHAPTER-2
Beyond Classical Search
Chapter 9 Genetic Algorithms
Presentation transcript:

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Friday, 16 February 2007 William H. Hsu Department of Computing and Information Sciences, KSU Readings: Sections , Mitchell Chapter 1, Sections , Goldberg Section 3.3.4, Shavlik and Dietterich (Booker, Goldberg, Holland) Genetic and Evolutionary Computation 1 of 3: The Simple Genetic Algorithm Lecture 15 of 42

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Lecture Outline Readings –Sections , Mitchell –Suggested: Chapter 1, Sections , Goldberg Paper Review: “Genetic Algorithms and Classifier Systems”, Booker et al Evolutionary Computation –Biological motivation: process of natural selection –Framework for search, optimization, and learning Prototypical (Simple) Genetic Algorithm –Components: selection, crossover, mutation –Representing hypotheses as individuals in GAs An Example: GA-Based Inductive Learning (GABIL) GA Building Blocks (aka Schemas) Taking Stock (Course Review): Where We Are, Where We’re Going

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Simple Genetic Algorithm (SGA) Algorithm Simple-Genetic-Algorithm (Fitness, Fitness-Threshold, p, r, m) // p: population size; r: replacement rate (aka generation gap width), m: string size –P  p random hypotheses// initialize population –FOR each h in P DO f[h]  Fitness(h)// evaluate Fitness: hypothesis  R –WHILE (Max(f) < Fitness-Threshold) DO 1. Select: Probabilistically select (1 - r)p members of P to add to P S 2. Crossover: –Probabilistically select (r · p)/2 pairs of hypotheses from P –FOR each pair DO P S += Crossover ( )// P S [t+1] = P S [t] + 3. Mutate: Invert a randomly selected bit in m · p random members of P S 4. Update: P  P S 5. Evaluate: FOR each h in P DO f[h]  Fitness(h) –RETURN the hypothesis h in P that has maximum fitness f[h]

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition GA-Based Inductive Learning (GABIL) GABIL System [Dejong et al, 1993] –Given: concept learning problem and examples –Learn: disjunctive set of propositional rules –Goal: results competitive with those for current decision tree learning algorithms (e.g., C4.5) Fitness Function: Fitness(h) = (Correct(h)) 2 Representation –Rules: IF a 1 = T  a 2 = F THEN c = T; IF a 2 = T THEN c = F –Bit string encoding: a 1 [10]. a 2 [01]. c [1]. a 1 [11]. a 2 [10]. c [0] = Genetic Operators –Want variable-length rule sets –Want only well-formed bit string hypotheses

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Crossover: Variable-Length Bit Strings Basic Representation –Start with a 1 a 2 c a 1 a 2 c h 1 1[ ]00 h 2 0[1 1] –Idea: allow crossover to produce variable-length offspring Procedure –1. Choose crossover points for h 1, e.g., after bits 1, 8 –2. Now restrict crossover points in h 2 to those that produce bitstrings with well- defined semantics, e.g.,,, Example –Suppose we choose –Result h h

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition GABIL Extensions New Genetic Operators –Applied probabilistically –1. AddAlternative: generalize constraint on a i by changing a 0 to a 1 –2. DropCondition: generalize constraint on a i by changing every 0 to a 1 New Field –Add fields to bit string to decide whether to allow the above operators a 1 a 2 c a 1 a 2 cAADC –So now the learning strategy also evolves! –aka genetic wrapper

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition GABIL Results Classification Accuracy –Compared to symbolic rule/tree learning methods C4.5 [Quinlan, 1993] ID5R AQ14 [Michalski, 1986] –Performance of GABIL comparable Average performance on a set of 12 synthetic problems: 92.1% test accuracy Symbolic learning methods ranged from 91.2% to 96.6% Effect of Generalization Operators –Result above is for GABIL without AA and DC –Average test set accuracy on 12 synthetic problems with AA and DC: 95.2%

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Building Blocks (Schemas) Problem –How to characterize evolution of population in GA? –Goal Identify basic building block of GAs Describe family of individuals Definition: Schema –String containing 0, 1, * (“don’t care”) –Typical schema: 10**0* –Instances of above schema: , , … Solution Approach –Characterize population by number of instances representing each possible schema –m(s, t)  number of instances of schema s in population at time t

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Selection and Building Blocks Restricted Case: Selection Only –  average fitness of population at time t –m(s, t)  number of instances of schema s in population at time t –  average fitness of instances of schema s at time t Quantities of Interest –Probability of selecting h in one selection step –Probability of selecting an instance of s in one selection step –Expected number of instances of s after n selections

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Schema Theorem Theorem –m(s, t)  number of instances of schema s in population at time t –  average fitness of population at time t –  average fitness of instances of schema s at time t –p c  probability of single point crossover operator –p m  probability of mutation operator –l  length of individual bit strings –o(s)  number of defined (non “*”) bits in s –d(s)  distance between rightmost, leftmost defined bits in s Intuitive Meaning –“The expected number of instances of a schema in the population tends toward its relative fitness” –A fundamental theorem of GA analysis and design

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Terminology Evolutionary Computation (EC): Models Based on Natural Selection Genetic Algorithm (GA) Concepts –Individual: single entity of model (corresponds to hypothesis) –Population: collection of entities in competition for survival –Generation: single application of selection and crossover operations –Schema aka building block: descriptor of GA population (e.g., 10**0*) –Schema theorem: representation of schema proportional to its relative fitness Simple Genetic Algorithm (SGA) Steps –Selection Proportionate reproduction (aka roulette wheel): P(individual)  f(individual) Tournament: let individuals compete in pairs or tuples; eliminate unfit ones –Crossover Single-point:   { , } Two-point:   { , } Uniform:   { , } –Mutation: single-point (“bit flip”), multi-point

Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Summary Points Evolutionary Computation –Motivation: process of natural selection Limited population; individuals compete for membership Method for parallelizing and stochastic search –Framework for problem solving: search, optimization, learning Prototypical (Simple) Genetic Algorithm (GA) –Steps Selection: reproduce individuals probabilistically, in proportion to fitness Crossover: generate new individuals probabilistically, from pairs of “parents” Mutation: modify structure of individual randomly –How to represent hypotheses as individuals in GAs An Example: GA-Based Inductive Learning (GABIL) Schema Theorem: Propagation of Building Blocks Next Lecture: Genetic Programming, The Movie