Representing Hypothesis Operators Fitness Function Genetic Programming

Slides:



Advertisements
Similar presentations
Genetic Algorithms in Problem Solving EVOLVING COMPUTER PROGRAMS (1) t Evolving Lisp Programs Keplers Third Law: P 2 = cA 3 PROGRAM ORBITAL_PERIORD.
Advertisements

Algorithm Design Techniques
10/01/2014 DMI - Università di Catania 1 Combinatorial Landscapes & Evolutionary Algorithms Prof. Giuseppe Nicosia University of Catania Department of.
Population-based metaheuristics Nature-inspired Initialize a population A new population of solutions is generated Integrate the new population into the.
Genetic Algorithms.
Genetic Algorithms Genetic Programming Ata Kaban School of Computer Science University of Birmingham 2003.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm
On the Genetic Evolution of a Perfect Tic-Tac-Toe Strategy
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.
Genetic Algorithms1 COMP305. Part II. Genetic Algorithms.
Doug Downey, adapted from Bryan Pardo, Machine Learning EECS 349 Machine Learning Genetic Programming.
COMP305. Part II. Genetic Algorithms. Genetic Algorithms.
Chapter 14 Genetic Algorithms.
CS 8751 ML & KDDGenetic Algorithms1 Evolutionary computation Prototypical GA An example: GABIL Genetic Programming Individual learning and population evolution.
Crossover Operation with Different Parents Crossover Operation with Identical Parents.
Genetic Algorithms Nehaya Tayseer 1.Introduction What is a Genetic algorithm? A search technique used in computer science to find approximate solutions.
What is Neutral? Neutral Changes and Resiliency Terence Soule Department of Computer Science University of Idaho.
Khaled Rasheed Computer Science Dept. University of Georgia
Genetic Algorithms Overview Genetic Algorithms: a gentle introduction –What are GAs –How do they work/ Why? –Critical issues Use in Data Mining –GAs.
Universidad de los Andes-CODENSA The Continuous Genetic Algorithm.
Genetic Programming.
Genetic Algorithm.
1 Paper Review for ENGG6140 Memetic Algorithms By: Jin Zeng Shaun Wang School of Engineering University of Guelph Mar. 18, 2002.
Schemata Theory Chapter 11. A.E. Eiben and J.E. Smith, Introduction to Evolutionary Computing Theory Why Bother with Theory? Might provide performance.
CS 484 – Artificial Intelligence1 Announcements Lab 3 due Tuesday, November 6 Homework 6 due Tuesday, November 6 Lab 4 due Thursday, November 8 Current.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
Genetic Algorithms Michael J. Watts
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.
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.
Kansas State University Department of Computing and Information Sciences CIS 732: Machine Learning and Pattern Recognition Friday, 16 February 2007 William.
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.
1 Genetic Algorithms K.Ganesh Introduction GAs and Simulated Annealing The Biology of Genetics The Logic of Genetic Programmes Demo Summary.
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.
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.
Biologically inspired algorithms BY: Andy Garrett YE Ziyu.
Machine Learning A Quick look Sources: Artificial Intelligence – Russell & Norvig Artifical Intelligence - Luger By: Héctor Muñoz-Avila.
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.
Chapter 9 Genetic Algorithms Evolutionary computation Prototypical GA
Chapter 9 Genetic Algorithms
D Nagesh Kumar, IIScOptimization Methods: M8L5 1 Advanced Topics in Optimization Evolutionary Algorithms for Optimization and Search.
An Introduction to Genetic Algorithms Lecture 2 November, 2010 Ivan Garibay
Blocks World Problem. The CS Terminal Specifies the block at the top of the stack. Example CS evaluates to E Note: Evaluates to nil if the stack is empty.
Genetics in EACirc DESCRIPTION OF THE COMPONENTS BASED ON EVOLUTION.
Genetic Algorithm. Outline Motivation Genetic algorithms An illustrative example Hypothesis space search.
1 Genetic Algorithms Contents 1. Basic Concepts 2. Algorithm 3. Practical considerations.
Chapter 14 Genetic Algorithms.
Genetic Algorithm in TDR System
Genetic Algorithms.
Example: Applying EC to the TSP Problem
An evolutionary approach to solving complex problems
Genetic Algorithms, Search Algorithms
CS621: Artificial Intelligence
Basics of Genetic Algorithms (MidTerm – only in RED material)
Example: Applying EC to the TSP Problem
Basics of Genetic Algorithms
A Gentle introduction Richard P. Simpson
Machine Learning: UNIT-4 CHAPTER-2
Beyond Classical Search
Chapter 9 Genetic Algorithms
Presentation transcript:

Representing Hypothesis Operators Fitness Function Genetic Programming Genetic Algorithms Introduction Representing Hypothesis Operators Fitness Function Genetic Programming Models of Evolution and Learning What is machine learning?

Population concentrates in a small region of the search space. Crowding A problem in genetic algorithms where one individual is much more fit than others. The population then begins to concentrate around this individual and variations of it. Population diversity is then reduced. What is machine learning? F(X) X Population concentrates in a small region of the search space.

Fitness sharing (similar individuals see their fitness value reduced). A Solution to Crowding One solution is to change the selection function, using for example rank selection. In the case where an individual is better fit than others, the ranking would not show the magnitude of the difference. Other solutions: Fitness sharing (similar individuals see their fitness value reduced). b. Spatially distribute individuals and only allow nearby individuals to recombine. c. Restrict certain kinds of individuals to recombine. What is machine learning?

To do this let’s begin with the concept of a schema. The Schema Theory Can we characterize mathematically the evolution of a population over time? To do this let’s begin with the concept of a schema. A schema is a pattern over a sequence of bits represented using 0, 1, or * for don’t care. Example: 0*10 is the set of all sequences with 010 in the 1st, 3rd, and 4rd positions. What is machine learning?

The theory tells us what to expect of m(s,t+1). The Schema Theory Schema theory tells us how each schema in the population evolves through time. Let m(s,t) be the number of instances representing schema s at time or step t. The theory tells us what to expect of m(s,t+1). We start by remembering what is the probability of selecting a hypothesis h: P(hi) = Fitness (hi) / Σj Fitness (hj) What is machine learning?

The probability can be expressed similarly as The Schema Theory The probability can be expressed similarly as P(hi) = f (hi) / n f’ (ti) Where f(hi) is the fitness of hi (for short) and f’(t) is the mean of the fitness value for all hypotheses in the population at time t. Now let us define the mean of the fitness value of the members of schema s in the following way: u(s,t) = Σ f(h) / m(s,t) Where the sum goes through only those hypotheses in schema s. What is machine learning?

E[ m(s, t+1) ] = ( u(s,t) / f’(t) ) m(s,t) The Schema Theory Then the expected value of the number of instances in schema s at time t+1 is: E[ m(s, t+1) ] = ( u(s,t) / f’(t) ) m(s,t) which means the value is proportional to the average fitness of those individuals in schema s at time t and inversely proportional to the average fitness of all individuals at time t. The theory provides a more general formulation based on the effect of crossover and mutation. What is machine learning?

Genetic programming is a form of evolutionary computation in which the individuals in the population are computer programs. Programs are normally represented by trees. A program is executed by parsing the tree. Example: + F = sin(x) + sqrt( x^2 + y) What is machine learning? Sin sqrt x + ^ y x 2

To apply genetic programming one has to define the functions Vocabulary To apply genetic programming one has to define the functions that can be applied: Example: sin, cos, sqrt, +, -, etc. A genetic programming algorithm explores the space of combinations of these functions. The fitness of an individual is determined by executing the program on a set of training data. What is machine learning?

The crossover operator is performed by replacing subtrees of one program with subtrees of another program. + + Sin ^ Sin sqrt 2 x + x y What is machine learning? x + ^ y x 2

Cross Over: Result + + Sin ^ Sin sqrt 2 x ^ x y x + + y x 2 What is machine learning? x + + y x 2

Learning an algorithm for stacking blocks: An Example Learning an algorithm for stacking blocks: N E S What is machine learning? R V U L A I Learn an algorithm to stack the blocks so that it reads “UNIVERSAL”

The only valid operations are An Example The only valid operations are move a block from the stack to the surface of the table move a block from the surface of table to the stack The primitive functions are CS (current stack) returns the name of the block on top of the stack. TB (top current block) returns the name of the topmost block where all blocks and itself are in correct order. c. NN (next necessary) name of the block needed above TB to read the word “UNIVERSAL”. What is machine learning?

Additional functions are An Example Additional functions are (MS x) move block x to stack if x is on table. (MT x) move block x to table if x is on the stack. (EQ x y) returns true if x = y. (NOT x) returns the complement of x. DO( x y) do x until expression y is true What is machine learning?

What is the fitness value? An Example What is the fitness value? In this experiment the author provided 166 different examples having each different initial block configurations. The fitness of a program is how many problem were correctly solved by the program. Initial population = 100 programs After 10 generations the genetic programming strategy found the following program: (EQ (DU (MT CS)(NOT CS)) (DU (MS NN)(NOT NN)) ) which solved all 166 programs correctly. What is machine learning?

Designing filter circuits. Another Example Designing filter circuits. Programs are evolved to transform a fixed circuit into a final circuit design. Primitive functions: Insert circuit components Delete circuit components Fitness: measure how well the design meets the specifications Population size = 640,000 What is machine learning?

Models of Evolution and Learning What is the relationship between what one individual learns during his lifetime compared to what evolution learns as the population evolves? Lamarckian Evolution: Lamarck (late 19th century) hypothesized that the experience of an individual during its lifetime affects the characteristics of its offspring. But evidence points to the contrary: the genetic makeup of an individual is unaffected by the experience of its parents. What is machine learning?

The Baldwin effect relies on the following: After J. M. Baldwin (1986). The Baldwin effect relies on the following: If the environment is continually changing, those individuals capable of learning and adapting quickly to the environment will have greater advantage compared to other individuals. Those individuals who can learn and adapt quickly will have less dependence on the genetic code and will help to achieve more rapid evolutionary adaptation. What is machine learning?

Parallel Genetic Agorithms It seems very natural to produce a parallel version of genetic algorithms. Some approaches divide the population into groups called demes. Each deme resides on a computational node, and a standard search is carried out on each node. There is communication and combination among demes but these are rare compared to those occurring within demes. What is machine learning?

Genetic algorithm do a parallel, hill climbing search looking Summary Genetic algorithm do a parallel, hill climbing search looking to optimize a fitness function. The search resembles the mechanism of biological evolution. Genetic algorithms have many application outside machine learning. In machine learning the goal is to evolve a population of hypotheses to find the hypothesis with highest accuracy. Genetic programming is similar to genetic algorithms but what we evolve is computer programs. What is machine learning?