SlideShare a Scribd company logo
 Search technique used in computing to find the true or approximate solutions to
optimization and search problems
 Categorized as global search heuristic
 Uses techniques inspired by evolutionary biology such as inheritance, mutation, selection,
crossover (also called recombination)
 Implemented as a computer simulation in which population of abstract representation
(chromosomes/ genotype/ genome) of candidate solutions (individual/ creatures) to an
optimization problem evolves towards a better solution
 Solutions are represented in binary but other encodings are also possible
 Evolution starts from a population of randomly generated individuals and happens in
generations
 In each generation, the fitness of every individual is evaluated, multiple individuals are
selected form current population and modified to form a new population
 The new population is then used in the next iteration of the algorithm
 The algorithm terminates when the desired number of generation has been produced or a
satisfactory fitness level has been reached
 Individual – any possible solution
 Population – group of all individuals
 Search space – all possible solution to the problem
 Chromosome – blueprint of an individual
 Trait – possible aspect of an individual
 Allele – possible setting of a trait
 Locus – position of gene on the chromosome
 Genome – collection of all chromosomes for an individual
 Cells are the basic building block of the body
 Each cell has a core structure that contains the chromosomes
 Each chromosome is made up of tightly coiled strands of DNA
 Genes are segments of DNA that determine specific traits such as eye or hair colour
 A gene mutation is an alteration in DNA. It can be inherited or acquired during lifetime
 Darwin’s theory of evolution – only the organism best adapted to heir environment tend
to survive
 Produce an initial population of individuals
 Evaluate the fitness of all individuals
 While termination condition not meet do
 Select filter individuals for reproduction
 Recombine between individuals
 Mutate individuals
 Evaluate the fitness of modified individuals
 Generate a new population
 End while
 Suppose we want to maximize the number of ones in a string of L binary digits
 An individual is encoding as a string of l binary digits
 Lets say L = 10, so 1 = 0000000001 (10 bits)
Produce an initial population of individuals
 Evaluate the fitness of all individuals
 While termination condition not meet do
 Select filter individuals for reproduction
 Recombine between individuals
 Mutate individuals
 Evaluate the fitness of modified individuals
 Generate a new population
 End while
 We start with the population of n random string. Suppose that l = 10 and n = 6
 We toss a fair coin 60 times to get the following initial population
s1 = 1111010101 f (s1) = 7
s2 = 0111000101 f (s2) = 5
s3 = 1110110101 f (s3) = 7
s4 = 0100010011 f (s4) = 4
s5 = 1110111101 f (s5) = 8
s6 = 0100110000 f (s6) = 3
 Produce an initial population of individuals
Evaluate the fitness of all individuals
 While termination condition not meet do
 Select filter individuals for reproduction
 Recombine between individuals
 Mutate individuals
 Evaluate the fitness of modified individuals
 Generate a new population
 End while
 Generates and combines multiple predictions
 Bagging: Bootstrap Aggregating
 Boosting
 Tends to get better results since there is deliberately introduced significant diversity
among models
 Bagging and boosting are meta-algorithms that pool decisions from multiple classifiers
 Improves stability and accuracy of machine-learning algorithms used in statistical
classification and regression
 Reduces variance and helps avoid overfitting
 Technique: given a standard training set D of size n, bagging generates m new training
set Di each of size n’ by sampling from D uniformly and with replacement
 If n’=n, then for large n, the set Di is expected to have the fractions of unique examples of
D, the rest being duplicates
 Lets calculate the average price of a house
 From F, get a sample x = (x1, x2, …, xn) and calculate the average u
 Now get several samples from F
 Its impossible to get multiple samples. So we use bootstrap
 Repeat B time:
 Generate a sample Lk of of size n from L by sampling with replacement
 Compute x* for x
 We now have bootstrap values
 X* = (x1*, ……., x2*)
X=(3.12, 0, 1.57,
19.67, 0.22, 2.20)
Mean=4.46
X1=(1.57,0.22,19.67,
0,0,2.2,3.12)
Mean=4.13
X2=(0, 2.20, 2.20,
2.20, 19.67, 1.57)
Mean=4.64
X3=(0.22, 3.12,1.57,
3.12, 2.20, 0.22)
Mean=1.74
 Based on the question: can a set of weak learners produce a strong learners?
 Weak learner is a classifier that is strongly related to true classification
 Strong learner is a classifier that is well-correlated with true classification

More Related Content

Similar to Genetic algorithm

Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithm
HEENA GUPTA
 
GA.pptx
GA.pptxGA.pptx
Ga
GaGa
Genetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptxGenetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptx
TAHANMKH
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
garima931
 
Topic_6
Topic_6Topic_6
Topic_6butest
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
Thushan Ganegedara
 
EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...
EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...
EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...
Elton John Embodo
 
Gadoc
GadocGadoc
My7class
My7classMy7class
My7class
ketan533
 
Genetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification ProblemsGenetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification Problems
Tarundeep Dhot
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
SHIMI S L
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
Nobal Niraula
 
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
VIT University (Chennai Campus)
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmszamakhan
 
Module-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data scienceModule-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data science
pujashri1975
 
Lecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptxLecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptx
shakirRahman10
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
Akhil Kaushik
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computing
SakshiMahto1
 

Similar to Genetic algorithm (20)

Introduction to Genetic algorithm
Introduction to Genetic algorithmIntroduction to Genetic algorithm
Introduction to Genetic algorithm
 
GA.pptx
GA.pptxGA.pptx
GA.pptx
 
Ga
GaGa
Ga
 
Genetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptxGenetic Algorithm 2 -.pptx
Genetic Algorithm 2 -.pptx
 
Genetic algorithm
Genetic algorithmGenetic algorithm
Genetic algorithm
 
Topic_6
Topic_6Topic_6
Topic_6
 
Ai presentation
Ai presentationAi presentation
Ai presentation
 
Genetic Algorithm
Genetic Algorithm Genetic Algorithm
Genetic Algorithm
 
EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...
EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...
EMBODO LP Grade 12 Mean and Variance of the Sampling Distribution of the Samp...
 
Gadoc
GadocGadoc
Gadoc
 
My7class
My7classMy7class
My7class
 
Genetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification ProblemsGenetic Programming for Generating Prototypes in Classification Problems
Genetic Programming for Generating Prototypes in Classification Problems
 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
 
Genetic Algorithm by Example
Genetic Algorithm by ExampleGenetic Algorithm by Example
Genetic Algorithm by Example
 
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
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
Module-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data scienceModule-2_Notes-with-Example for data science
Module-2_Notes-with-Example for data science
 
Lecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptxLecture 5 Sampling distribution of sample mean.pptx
Lecture 5 Sampling distribution of sample mean.pptx
 
Introduction to Genetic algorithms
Introduction to Genetic algorithmsIntroduction to Genetic algorithms
Introduction to Genetic algorithms
 
Evolutionary computing - soft computing
Evolutionary computing - soft computingEvolutionary computing - soft computing
Evolutionary computing - soft computing
 

More from Ujjawal

fMRI in machine learning
fMRI in machine learningfMRI in machine learning
fMRI in machine learning
Ujjawal
 
Random forest
Random forestRandom forest
Random forestUjjawal
 
Neural network for machine learning
Neural network for machine learningNeural network for machine learning
Neural network for machine learningUjjawal
 
Information retrieval
Information retrievalInformation retrieval
Information retrievalUjjawal
 
K nearest neighbor
K nearest neighborK nearest neighbor
K nearest neighbor
Ujjawal
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machines
Ujjawal
 
Vector space classification
Vector space classificationVector space classification
Vector space classification
Ujjawal
 
Bayes’ theorem and logistic regression
Bayes’ theorem and logistic regressionBayes’ theorem and logistic regression
Bayes’ theorem and logistic regressionUjjawal
 
Introduction to data mining
Introduction to data miningIntroduction to data mining
Introduction to data mining
Ujjawal
 

More from Ujjawal (9)

fMRI in machine learning
fMRI in machine learningfMRI in machine learning
fMRI in machine learning
 
Random forest
Random forestRandom forest
Random forest
 
Neural network for machine learning
Neural network for machine learningNeural network for machine learning
Neural network for machine learning
 
Information retrieval
Information retrievalInformation retrieval
Information retrieval
 
K nearest neighbor
K nearest neighborK nearest neighbor
K nearest neighbor
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machines
 
Vector space classification
Vector space classificationVector space classification
Vector space classification
 
Bayes’ theorem and logistic regression
Bayes’ theorem and logistic regressionBayes’ theorem and logistic regression
Bayes’ theorem and logistic regression
 
Introduction to data mining
Introduction to data miningIntroduction to data mining
Introduction to data mining
 

Recently uploaded

tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
theahmadsaood
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
yhkoc
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
axoqas
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
NABLAS株式会社
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
StarCompliance.io
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 

Recently uploaded (20)

tapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive datatapal brand analysis PPT slide for comptetive data
tapal brand analysis PPT slide for comptetive data
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
哪里卖(usq毕业证书)南昆士兰大学毕业证研究生文凭证书托福证书原版一模一样
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .社内勉強会資料_LLM Agents                              .
社内勉強会資料_LLM Agents                              .
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
Investigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_CrimesInvestigate & Recover / StarCompliance.io / Crypto_Crimes
Investigate & Recover / StarCompliance.io / Crypto_Crimes
 
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 

Genetic algorithm

  • 1.
  • 2.  Search technique used in computing to find the true or approximate solutions to optimization and search problems  Categorized as global search heuristic  Uses techniques inspired by evolutionary biology such as inheritance, mutation, selection, crossover (also called recombination)  Implemented as a computer simulation in which population of abstract representation (chromosomes/ genotype/ genome) of candidate solutions (individual/ creatures) to an optimization problem evolves towards a better solution  Solutions are represented in binary but other encodings are also possible
  • 3.  Evolution starts from a population of randomly generated individuals and happens in generations  In each generation, the fitness of every individual is evaluated, multiple individuals are selected form current population and modified to form a new population  The new population is then used in the next iteration of the algorithm  The algorithm terminates when the desired number of generation has been produced or a satisfactory fitness level has been reached
  • 4.  Individual – any possible solution  Population – group of all individuals  Search space – all possible solution to the problem  Chromosome – blueprint of an individual  Trait – possible aspect of an individual  Allele – possible setting of a trait  Locus – position of gene on the chromosome  Genome – collection of all chromosomes for an individual
  • 5.  Cells are the basic building block of the body  Each cell has a core structure that contains the chromosomes  Each chromosome is made up of tightly coiled strands of DNA  Genes are segments of DNA that determine specific traits such as eye or hair colour  A gene mutation is an alteration in DNA. It can be inherited or acquired during lifetime  Darwin’s theory of evolution – only the organism best adapted to heir environment tend to survive
  • 6.  Produce an initial population of individuals  Evaluate the fitness of all individuals  While termination condition not meet do  Select filter individuals for reproduction  Recombine between individuals  Mutate individuals  Evaluate the fitness of modified individuals  Generate a new population  End while
  • 7.
  • 8.  Suppose we want to maximize the number of ones in a string of L binary digits  An individual is encoding as a string of l binary digits  Lets say L = 10, so 1 = 0000000001 (10 bits)
  • 9. Produce an initial population of individuals  Evaluate the fitness of all individuals  While termination condition not meet do  Select filter individuals for reproduction  Recombine between individuals  Mutate individuals  Evaluate the fitness of modified individuals  Generate a new population  End while
  • 10.  We start with the population of n random string. Suppose that l = 10 and n = 6  We toss a fair coin 60 times to get the following initial population s1 = 1111010101 f (s1) = 7 s2 = 0111000101 f (s2) = 5 s3 = 1110110101 f (s3) = 7 s4 = 0100010011 f (s4) = 4 s5 = 1110111101 f (s5) = 8 s6 = 0100110000 f (s6) = 3
  • 11.  Produce an initial population of individuals Evaluate the fitness of all individuals  While termination condition not meet do  Select filter individuals for reproduction  Recombine between individuals  Mutate individuals  Evaluate the fitness of modified individuals  Generate a new population  End while
  • 12.
  • 13.  Generates and combines multiple predictions  Bagging: Bootstrap Aggregating  Boosting  Tends to get better results since there is deliberately introduced significant diversity among models  Bagging and boosting are meta-algorithms that pool decisions from multiple classifiers
  • 14.  Improves stability and accuracy of machine-learning algorithms used in statistical classification and regression  Reduces variance and helps avoid overfitting  Technique: given a standard training set D of size n, bagging generates m new training set Di each of size n’ by sampling from D uniformly and with replacement  If n’=n, then for large n, the set Di is expected to have the fractions of unique examples of D, the rest being duplicates
  • 15.  Lets calculate the average price of a house  From F, get a sample x = (x1, x2, …, xn) and calculate the average u  Now get several samples from F  Its impossible to get multiple samples. So we use bootstrap  Repeat B time:  Generate a sample Lk of of size n from L by sampling with replacement  Compute x* for x  We now have bootstrap values  X* = (x1*, ……., x2*)
  • 16. X=(3.12, 0, 1.57, 19.67, 0.22, 2.20) Mean=4.46 X1=(1.57,0.22,19.67, 0,0,2.2,3.12) Mean=4.13 X2=(0, 2.20, 2.20, 2.20, 19.67, 1.57) Mean=4.64 X3=(0.22, 3.12,1.57, 3.12, 2.20, 0.22) Mean=1.74
  • 17.  Based on the question: can a set of weak learners produce a strong learners?  Weak learner is a classifier that is strongly related to true classification  Strong learner is a classifier that is well-correlated with true classification