SlideShare a Scribd company logo
1 of 23
Application of genetic algorithm in machine
learning
Submitted
By:
Jagadish Mohanty
1721109165
th
 Introduction of GAs
 Why genetic algorithm
 Basic terminology
 Flow chat
 Procedure
 Fitness function
 Genetic operations
a. Selection Operation
b. Crossover Operations
 Single-Point Crossover
 Two-Point Crossover
 Uniform Crossover
c. Mutation Operations
 Example of MAXONE problem
 Conclusion
 References
 The basic techniques of the genetic algorithms are
designed to simulate processes in natural system
necessary for evolution, especially those follow that
principles first laid down by Charles Darwin. ”survival
of the fittest,” because in nature, competition among
individuals for scanty resources results in the fittest
individuals dominating over the weaker ones.
 A genetic algorithm is a heuristic search method used
in artificial intelligence and computing.
 It is used for finding optimized solutions to search
problems based on the theory of natural selection
and evolutionary biology.
 Genetic algorithms are excellent for searching
through large and complex data sets.
 They are better than conventional algorithms
in that they are more robust. Unlike older AI
systems, they do not break easily even if the
inputs are changed slightly or in the presence
of reasonable noise.
 Also in searching a large state space
multimodal state-space or n-dimensional
surface, a GA may offer significant benefits
over more typical optimization techniques.
 Population-subset of all
the possible solutions
to the given problem.
 Chromosomes-one
such solution to given
problem
 Gene- one element
position of a
chromosome.
 Allele- value a gene
takes for particular
chromosome.
 Genotype- population in
the computation space.
 Phenotype- population
in the actual real world
solution space.
 Decoding- transforming
a solution from the
genotype to the
phenotype space.
 Encoding- transforming
from the phenotype to
genotype space
{
1. [Start] Generate random population of n chromosomes (suitable solutions for the
problem).
2. [Fitness] Evaluate the fitness f(x) of each chromosome x in the population.
3. [New population] Create a new population by repeating following steps until the
new population is complete
a. [Selection] Select two parent chromosomes from a population according to their
fitness (the better fitness, the bigger chance to be selected).
b. [Crossover] With a crossover probability cross over the parents to form a new
offspring (children). If no crossover was performed, offspring is an exact copy of
parents.
c. [Mutation] With a mutation probability mutate new offspring at each locus
(position in chromosome).
d. [Accepting] Place new offspring in a new population.
4. [Replace] Use new generated population for a further run of algorithm.
5. [Test] If the end condition is satisfied, stop, and return the best solution in current
population.
6. [Loop] Go to step 2.
}
 The fitness function defines the criterion for ranking
potential hypotheses and for probabilistically selecting
them for inclusion in the next generation population. If the
task is to learn classification rules, then the fitness
function typically has a component that scores the
classification accuracy of the rule over a set of provided
training examples.
 Often other criteria may be included as well, such as the
complexity or generality of the rule. More generally, when
the bit-string hypothesis is interpreted as a complex
procedure (e.g., when the bit string represents a collection
of if-then rules that will be chained together to control a
robotic device), the fitness function may measure the
overall performance of the resulting procedure rather than
performance of individual rules.
 Selection operation is to select elitist
individuals as parents in current
population, which can generate offspring.
Fitness values are used as criteria to judge
whether individuals are elitist.
 There are many methods how to select the
best chromosomes, for example roulette
wheel selection, rank selection, elitism
selection and some others.
1. Single-Point Crossover
 A cross site is selected randomly along the
length of the mated strings
 Bits next to the cross site are exchanged
 If good strings are not created by crossover,
they will not beyond next generation.
1 0 1 1 1 1 1 1
0 1 0 1 0 0 0 1 0 1 0 1 0 1 1 1
1 0 1 1 1 0 0 1Parent 1
Parent 2
Strings before mating
Offspring 1
Offspring 2
String after mating
 Two random sites are chosen.
 The contents bracketed by these are
exchanged between two mated parents.
1 0 0 1 0 1 1 1
0 1 1 1 0 0 0 1 0 1 1 1 0 1 0 1
1 0 0 1 0 0 1 1Parent 1
Parent 2
Strings before mating
Offspring 1
Offspring 2
String after mating
 Bits are randomly copied from the first or
from the second parent.
 A random mask is generated.
 The mask determines which bits are copied
from one parent and which from the other
parent.
 Mask: 0110011000 (Randomly generated)
Parent 1 1 0 1 0 0 0 1 1 1 0
Parent 2 0 0 1 1 0 1 0 0 1 0
Offspring 1 0 0 1 1 0 0 1 0 1 0
Offspring 2 1 0 1 0 0 1 0 1 1 0
 In addition to recombination operators that
produce offspring by combining parts of two
parents, a second type of operator produces
offspring from a single parent.
 In particular, the mutation operator produces
small random changes to the bit string by
choosing a single bit at random, then
changing its value.
 We start with a population of n random
strings. Suppose that l=10 and n=6
 We toss a fair coin 60 times and get the
following initial population:
S1= 1111010101
S2= 0111000101
S3= 1110110101
S4= 0100010011
S5= 1110111101
S6= 0100110000
20.58%
14.70%
20.58%
11.76%
23.52%
08.82%
Selection
 Suppose that, after performing selection, we
get the following population.
20.58
14.7
20.58
11.76
23.52
8.82
Selection
S1 S2 S3 S4 S5 S6
 Before crossover:
S1’=1111010101 S5’=0100010011
S2’=1110110101 S6’=1110111101
 After crossover:
S1’’=1110110101 S5’’=0100011101
S2’’=1111010101 S6’’=1110110011
 Before Mutation
S1’’=1110110101
S2’’=1111010101
S3’’=1110111101
S4’’=0111000101
S5’’=0100011101
S6’’=1110110011
 After Mutation
S1’’’=1110100101
S2’’’=1111110100
S3’’’=1110101111
S4’’’=0111000101
S5’’’=0100011101
S6’’’=1110110001
 After Applying Mutation
S1’’’=1110100101 f(S1’’’)=6
S2’’’=1111110100 f(S2’’’)=7
S3’’’=1110101111 f(S3’’’)=8
S4’’’=0111000101 f(S4’’’)=5
S5’’’=0100011101 f(S5’’’)=5
S6’’’=1110110001 f(S6’’’)=6
-------------------------------
∑f=37
 In one generation, the total population fitness
changed from 34 to 37.
 At this point we go through the same process
all over again, until a stopping criterion is
met.
 In each iteration number of 1’s will maximize
either to a particular threshold value or to the
maximum value i.e. 60 in this example.
◦ Genetic algorithms are excellent for searching through
large and complex data sets.
◦ Genetic algorithm is a heuristic search method used in
artificial intelligence and computing.
 https://www.researchgate.net/publication/30
9770246
 https://www.slideshare.net/zamakhan/geneti
c-algorithms-6229473
 https://m.youtube.com/watch?v=f0bGSPo5aJ
k
 https://www.researchgate.net/publication/26
7369803
 www.cs.bgu.ac.il/~assafza

More Related Content

What's hot

Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithmsanas_elf
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Ahmed Gad
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data MiningAtul Khanna
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithmgarima931
 
Genetic Algorithms - GAs
Genetic Algorithms - GAsGenetic Algorithms - GAs
Genetic Algorithms - GAsMohamed Talaat
 
Reinforcement learning
Reinforcement learning Reinforcement learning
Reinforcement learning Chandra Meena
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentationshahparin
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligencesandeep54552
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithmsshadanalam
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithmsAkhil Kaushik
 
Differential Evolution Algorithm (DEA)
Differential Evolution Algorithm (DEA) Differential Evolution Algorithm (DEA)
Differential Evolution Algorithm (DEA) A. Bilal Özcan
 
Optimization problems and algorithms
Optimization problems and  algorithmsOptimization problems and  algorithms
Optimization problems and algorithmsAboul Ella Hassanien
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary AlgorithmsReem Alattas
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GAIshucs
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsguest9938738
 

What's hot (20)

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)Introduction to Optimization with Genetic Algorithm (GA)
Introduction to Optimization with Genetic Algorithm (GA)
 
Genetic algorithms in Data Mining
Genetic algorithms in Data MiningGenetic algorithms in Data Mining
Genetic algorithms in Data Mining
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Genetic Algorithms - GAs
Genetic Algorithms - GAsGenetic Algorithms - GAs
Genetic Algorithms - GAs
 
Reinforcement learning
Reinforcement learning Reinforcement learning
Reinforcement learning
 
Evolutionary Computing
Evolutionary ComputingEvolutionary Computing
Evolutionary Computing
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentation
 
Hill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligenceHill climbing algorithm in artificial intelligence
Hill climbing algorithm in artificial intelligence
 
Introduction to genetic algorithms
Introduction to genetic algorithmsIntroduction to genetic algorithms
Introduction to genetic algorithms
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
Differential Evolution Algorithm (DEA)
Differential Evolution Algorithm (DEA) Differential Evolution Algorithm (DEA)
Differential Evolution Algorithm (DEA)
 
Optimization problems and algorithms
Optimization problems and  algorithmsOptimization problems and  algorithms
Optimization problems and algorithms
 
Evolutionary Algorithms
Evolutionary AlgorithmsEvolutionary Algorithms
Evolutionary Algorithms
 
Genetic algorithm
Genetic algorithm Genetic algorithm
Genetic algorithm
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Genetic Algorithms
Genetic AlgorithmsGenetic Algorithms
Genetic Algorithms
 
Flowchart of GA
Flowchart of GAFlowchart of GA
Flowchart of GA
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 

Similar to Genetic Algorithm Machine Learning Optimization

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
 
Solving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithmSolving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithmLahiru Dilshan
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdfAzmiNizar1
 
Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithmHEENA GUPTA
 
Machine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalMachine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalAnggi Andriyadi
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization TechniquesValerie Felton
 
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real  Vijay Bhaskar SemwalGenetic algorithm (ga) binary and real  Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real Vijay Bhaskar SemwalIIIT Allahabad
 
An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...Zac Darcy
 
An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...Zac Darcy
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4Nandhini S
 
AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...
AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...
AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...Zac Darcy
 
A Comparative Analysis of Genetic Algorithm Selection Techniques
A Comparative Analysis of Genetic Algorithm Selection TechniquesA Comparative Analysis of Genetic Algorithm Selection Techniques
A Comparative Analysis of Genetic Algorithm Selection TechniquesIRJET Journal
 

Similar to Genetic Algorithm Machine Learning Optimization (20)

Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
GA.pptx
GA.pptxGA.pptx
GA.pptx
 
Genetic
GeneticGenetic
Genetic
 
Solving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithmSolving non linear programming minimization problem using genetic algorithm
Solving non linear programming minimization problem using genetic algorithm
 
Genetic Algorithm (1).pdf
Genetic Algorithm (1).pdfGenetic Algorithm (1).pdf
Genetic Algorithm (1).pdf
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Extensive Survey on Datamining Algoritms for Pattern Extraction
Extensive Survey on Datamining Algoritms for Pattern ExtractionExtensive Survey on Datamining Algoritms for Pattern Extraction
Extensive Survey on Datamining Algoritms for Pattern Extraction
 
Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithm
 
Machine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm FundamentalMachine Learning - Genetic Algorithm Fundamental
Machine Learning - Genetic Algorithm Fundamental
 
RM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lectureRM 701 Genetic Algorithm and Fuzzy Logic lecture
RM 701 Genetic Algorithm and Fuzzy Logic lecture
 
Advanced Optimization Techniques
Advanced Optimization TechniquesAdvanced Optimization Techniques
Advanced Optimization Techniques
 
Ga
GaGa
Ga
 
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real  Vijay Bhaskar SemwalGenetic algorithm (ga) binary and real  Vijay Bhaskar Semwal
Genetic algorithm (ga) binary and real Vijay Bhaskar Semwal
 
Ai presentation
Ai presentationAi presentation
Ai presentation
 
An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...
 
An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...An Improved Iterative Method for Solving General System of Equations via Gene...
An Improved Iterative Method for Solving General System of Equations via Gene...
 
CSA 3702 machine learning module 4
CSA 3702 machine learning module 4CSA 3702 machine learning module 4
CSA 3702 machine learning module 4
 
AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...
AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...
AN IMPROVED ITERATIVE METHOD FOR SOLVING GENERAL SYSTEM OF EQUATIONS VIA GENE...
 
A Comparative Analysis of Genetic Algorithm Selection Techniques
A Comparative Analysis of Genetic Algorithm Selection TechniquesA Comparative Analysis of Genetic Algorithm Selection Techniques
A Comparative Analysis of Genetic Algorithm Selection Techniques
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 

Recently uploaded (20)

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 

Genetic Algorithm Machine Learning Optimization

  • 1. Application of genetic algorithm in machine learning Submitted By: Jagadish Mohanty 1721109165 th
  • 2.  Introduction of GAs  Why genetic algorithm  Basic terminology  Flow chat  Procedure  Fitness function  Genetic operations a. Selection Operation b. Crossover Operations  Single-Point Crossover  Two-Point Crossover  Uniform Crossover c. Mutation Operations  Example of MAXONE problem  Conclusion  References
  • 3.  The basic techniques of the genetic algorithms are designed to simulate processes in natural system necessary for evolution, especially those follow that principles first laid down by Charles Darwin. ”survival of the fittest,” because in nature, competition among individuals for scanty resources results in the fittest individuals dominating over the weaker ones.  A genetic algorithm is a heuristic search method used in artificial intelligence and computing.  It is used for finding optimized solutions to search problems based on the theory of natural selection and evolutionary biology.  Genetic algorithms are excellent for searching through large and complex data sets.
  • 4.  They are better than conventional algorithms in that they are more robust. Unlike older AI systems, they do not break easily even if the inputs are changed slightly or in the presence of reasonable noise.  Also in searching a large state space multimodal state-space or n-dimensional surface, a GA may offer significant benefits over more typical optimization techniques.
  • 5.  Population-subset of all the possible solutions to the given problem.  Chromosomes-one such solution to given problem  Gene- one element position of a chromosome.  Allele- value a gene takes for particular chromosome.
  • 6.  Genotype- population in the computation space.  Phenotype- population in the actual real world solution space.  Decoding- transforming a solution from the genotype to the phenotype space.  Encoding- transforming from the phenotype to genotype space
  • 7.
  • 8. { 1. [Start] Generate random population of n chromosomes (suitable solutions for the problem). 2. [Fitness] Evaluate the fitness f(x) of each chromosome x in the population. 3. [New population] Create a new population by repeating following steps until the new population is complete a. [Selection] Select two parent chromosomes from a population according to their fitness (the better fitness, the bigger chance to be selected). b. [Crossover] With a crossover probability cross over the parents to form a new offspring (children). If no crossover was performed, offspring is an exact copy of parents. c. [Mutation] With a mutation probability mutate new offspring at each locus (position in chromosome). d. [Accepting] Place new offspring in a new population. 4. [Replace] Use new generated population for a further run of algorithm. 5. [Test] If the end condition is satisfied, stop, and return the best solution in current population. 6. [Loop] Go to step 2. }
  • 9.  The fitness function defines the criterion for ranking potential hypotheses and for probabilistically selecting them for inclusion in the next generation population. If the task is to learn classification rules, then the fitness function typically has a component that scores the classification accuracy of the rule over a set of provided training examples.  Often other criteria may be included as well, such as the complexity or generality of the rule. More generally, when the bit-string hypothesis is interpreted as a complex procedure (e.g., when the bit string represents a collection of if-then rules that will be chained together to control a robotic device), the fitness function may measure the overall performance of the resulting procedure rather than performance of individual rules.
  • 10.  Selection operation is to select elitist individuals as parents in current population, which can generate offspring. Fitness values are used as criteria to judge whether individuals are elitist.  There are many methods how to select the best chromosomes, for example roulette wheel selection, rank selection, elitism selection and some others.
  • 11. 1. Single-Point Crossover  A cross site is selected randomly along the length of the mated strings  Bits next to the cross site are exchanged  If good strings are not created by crossover, they will not beyond next generation. 1 0 1 1 1 1 1 1 0 1 0 1 0 0 0 1 0 1 0 1 0 1 1 1 1 0 1 1 1 0 0 1Parent 1 Parent 2 Strings before mating Offspring 1 Offspring 2 String after mating
  • 12.  Two random sites are chosen.  The contents bracketed by these are exchanged between two mated parents. 1 0 0 1 0 1 1 1 0 1 1 1 0 0 0 1 0 1 1 1 0 1 0 1 1 0 0 1 0 0 1 1Parent 1 Parent 2 Strings before mating Offspring 1 Offspring 2 String after mating
  • 13.  Bits are randomly copied from the first or from the second parent.  A random mask is generated.  The mask determines which bits are copied from one parent and which from the other parent.  Mask: 0110011000 (Randomly generated) Parent 1 1 0 1 0 0 0 1 1 1 0 Parent 2 0 0 1 1 0 1 0 0 1 0 Offspring 1 0 0 1 1 0 0 1 0 1 0 Offspring 2 1 0 1 0 0 1 0 1 1 0
  • 14.  In addition to recombination operators that produce offspring by combining parts of two parents, a second type of operator produces offspring from a single parent.  In particular, the mutation operator produces small random changes to the bit string by choosing a single bit at random, then changing its value.
  • 15.  We start with a population of n random strings. Suppose that l=10 and n=6  We toss a fair coin 60 times and get the following initial population: S1= 1111010101 S2= 0111000101 S3= 1110110101 S4= 0100010011 S5= 1110111101 S6= 0100110000
  • 17.  Suppose that, after performing selection, we get the following population. 20.58 14.7 20.58 11.76 23.52 8.82 Selection S1 S2 S3 S4 S5 S6
  • 18.  Before crossover: S1’=1111010101 S5’=0100010011 S2’=1110110101 S6’=1110111101  After crossover: S1’’=1110110101 S5’’=0100011101 S2’’=1111010101 S6’’=1110110011
  • 19.  Before Mutation S1’’=1110110101 S2’’=1111010101 S3’’=1110111101 S4’’=0111000101 S5’’=0100011101 S6’’=1110110011  After Mutation S1’’’=1110100101 S2’’’=1111110100 S3’’’=1110101111 S4’’’=0111000101 S5’’’=0100011101 S6’’’=1110110001
  • 20.  After Applying Mutation S1’’’=1110100101 f(S1’’’)=6 S2’’’=1111110100 f(S2’’’)=7 S3’’’=1110101111 f(S3’’’)=8 S4’’’=0111000101 f(S4’’’)=5 S5’’’=0100011101 f(S5’’’)=5 S6’’’=1110110001 f(S6’’’)=6 ------------------------------- ∑f=37
  • 21.  In one generation, the total population fitness changed from 34 to 37.  At this point we go through the same process all over again, until a stopping criterion is met.  In each iteration number of 1’s will maximize either to a particular threshold value or to the maximum value i.e. 60 in this example.
  • 22. ◦ Genetic algorithms are excellent for searching through large and complex data sets. ◦ Genetic algorithm is a heuristic search method used in artificial intelligence and computing.
  • 23.  https://www.researchgate.net/publication/30 9770246  https://www.slideshare.net/zamakhan/geneti c-algorithms-6229473  https://m.youtube.com/watch?v=f0bGSPo5aJ k  https://www.researchgate.net/publication/26 7369803  www.cs.bgu.ac.il/~assafza