SlideShare a Scribd company logo
Autoencoders
Mirza Jahanzeb Beg
Lovely Professional University
● Autoencoders are
○ Artificial neural networks
○ Capable of learning efficient representations of the input data, called
codings, without any supervision
○ The training set is unlabeled.
● These codings typically have a much lower dimensionality than the input
data, making autoencoders useful for dimensionality reduction
Autoencoders
Autoencoders
Why use Autoencoders?
● Useful for dimensionality reduction
● Autoencoders act as powerful feature detectors,
● And they can be used for unsupervised pre-training of deep neural
networks
● Lastly, they are capable of randomly generating new data that looks very
similar to the training data; this is called a generative model
Autoencoders
Autoencoders
Autoencoders
Why use Autoencoders?
For example, we could train an autoencoder on pictures of faces, and it
would then be able to generate new faces
Autoencoders
● Surprisingly, autoencoders work by simply learning to copy their inputs
to their outputs
● This may sound like a trivial task, but we will see that constraining the
network in various ways can make it rather difficult
Autoencoders
Autoencoders
Autoencoders
Autoencoders
For example
● You can limit the size of the internal representation, or you can add noise
to the inputs and train the network to recover the original inputs.
● These constraints prevent the autoencoder from trivially copying the
inputs directly to the outputs, which forces it to learn efficient ways of
representing the data
● In short, the codings are byproducts of the autoencoder’s attempt to
learn the identity function under some constraints
What we’ll learn ?
● We will explain in more depth how autoencoders work
● What types of constraints can be imposed
● And how to implement them using TensorFlow, whether it is for
○ Dimensionality reduction,
○ Feature extraction,
○ Insupervised pretraining,
○ Or as generative models
Autoencoders
Autoencoders
Let’s try to understand
“why constraining an
autoencoder during training pushes it to discover and exploit
patterns in the data”
With an example
Autoencoders
Efficient Data Representations
Which of the following number sequences do you find the easiest
to memorize?
● 40, 27, 25, 36, 81, 57, 10, 73, 19, 68
● 50, 25, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20
Autoencoders
Efficient Data Representations
● At first glance, it would seem that the first sequence should be easier,
since it is much shorter
● However, if you look carefully at the second sequence, you may notice
that it follows two simple rules:
○ Even numbers are followed by their half,
○ And odd numbers are followed by their triple plus one
This is a famous sequence known as the hailstone sequence
Autoencoders
Efficient Data Representations
● Once you notice this pattern, the second sequence becomes much easier
to memorize than the first because you only need to memorize the two
rules,
○ The first number,
○ And the length of the sequence
Autoencoders
Efficient Data Representations
● Note that if we could quickly and easily memorize very long sequences,
you would not care much about the existence of a pattern in the
second sequence
● You would just learn every number by heart, and that would be that
● It is the fact that it is hard to memorize long sequences that makes
it useful to recognize patterns,
● And hopefully this clarifies why constraining an autoencoder during
training pushes it to discover and exploit patterns in the data
Autoencoders
Efficient Data Representations
The relationship between memory, perception, and pattern matching was
famously studied by William Chase and Herbert Simon in the early
1970s
Efficient Data Representations
William Chase
Autoencoders
Herbert Simon
Let’s see how their study of chess players is similar to an
Autoencoder
● They observed that expert chess players were able to memorize the
positions of all the pieces in a game by looking at the board for just 5
seconds,
● A task that most people would find impossible
● However, this was only the case when the pieces were placed in realistic
positions from actual games, not when the pieces were placed randomly.
Autoencoders
Efficient Data Representations
Let’s see how their study of chess players is similar to an
Autoencoder
● Chess experts don’t have a much better memory than you and I,
● They just see chess patterns more easily thanks to their experience with
the game
● Noticing patterns helps them store information efficiently
Autoencoders
Efficient Data Representations
Let’s see how their study of chess players is similar to an
Autoencoder
● Just like the chess players in this memory experiment, an autoencoder
○ looks at the inputs,
○ converts them to an efficient internal representation,
○ and then spits out something that (hopefully) looks very close to the
inputs
Autoencoders
Efficient Data Representations
Composition of Autoencoder
An autoencoder is always composed of two parts:
● An encoder or recognition network that converts the inputs to an
internal representation,
● Followed by a decoder or generative network that converts the
internal representation to the outputs
Autoencoders
Efficient Data Representations
Composition of Autoencoder
Efficient Data Representations
Autoencoders
Composition of Autoencoder
Efficient Data Representations
An autoencoder
typically has the
same architecture as
a Multi-Layer
Perceptron, except that
the number of neurons
in the output layer must
be equal to the
number of inputs
Autoencoders
There is just one hidden
layer composed of two
neurons (the encoder),
and one output layer
composed of three
neurons (the decoder)
Composition of Autoencoder
Efficient Data Representations
Autoencoders
Composition of Autoencoder
Efficient Data Representations
The outputs are often called
the reconstructions
since the autoencoder tries
to reconstruct the inputs,
and the cost function
contains a reconstruction
loss that penalizes the model
when the reconstructions are
different from the inputs.
Autoencoders
Because the internal
representation has a lower
dimensionality than the input
data, it is 2D instead of
3D, the autoencoder is said
to be undercomplete
Composition of Autoencoder
Efficient Data Representations
Autoencoders
Composition of Autoencoder
Efficient Data Representations
● An undercomplete
autoencoder cannot
trivially copy its inputs to
the codings, yet it must
find a way to output a
copy of its inputs
● It is forced to learn the
most important features in
the input data and drop
the unimportant ones
Autoencoders

More Related Content

Similar to Autoecoders.pptx

Unsupervised Feature Learning
Unsupervised Feature LearningUnsupervised Feature Learning
Unsupervised Feature LearningAmgad Muhammad
 
Autoencoder
AutoencoderAutoencoder
Autoencoder
Wataru Hirota
 
CSSC ML Workshop
CSSC ML WorkshopCSSC ML Workshop
CSSC ML Workshop
GDSC UofT Mississauga
 
Tutorial olap4j
Tutorial olap4jTutorial olap4j
Tutorial olap4j
Borja A. Espejo García
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQLData Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
EDB
 
Introduction to Parallelization and performance optimization
Introduction to Parallelization and performance optimizationIntroduction to Parallelization and performance optimization
Introduction to Parallelization and performance optimization
CSUC - Consorci de Serveis Universitaris de Catalunya
 
Data oriented design and c++
Data oriented design and c++Data oriented design and c++
Data oriented design and c++
Mike Acton
 
GDSC Introduction to Deep Learning Workshop
GDSC Introduction to Deep Learning WorkshopGDSC Introduction to Deep Learning Workshop
GDSC Introduction to Deep Learning Workshop
ssuser540861
 
Meetup 29042015
Meetup 29042015Meetup 29042015
Meetup 29042015lbishal
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarjemimajerome
 
ML in Android
ML in AndroidML in Android
ML in Android
Jose Antonio Corbacho
 
AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...
AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...
AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...
devismileyrockz
 
Distributed machine learning 101 using apache spark from a browser devoxx.b...
Distributed machine learning 101 using apache spark from a browser   devoxx.b...Distributed machine learning 101 using apache spark from a browser   devoxx.b...
Distributed machine learning 101 using apache spark from a browser devoxx.b...
Andy Petrella
 
Embedded Systems PPt.pptx
Embedded Systems PPt.pptxEmbedded Systems PPt.pptx
Embedded Systems PPt.pptx
Tabrezahmed39
 
Practical ML
Practical MLPractical ML
Practical ML
Antonio Pitasi
 
MySQL Query Optimisation 101
MySQL Query Optimisation 101MySQL Query Optimisation 101
MySQL Query Optimisation 101
Federico Razzoli
 
autoencoder-190813145130.pdf
autoencoder-190813145130.pdfautoencoder-190813145130.pdf
autoencoder-190813145130.pdf
Sameer Gulshan
 
Testing for the deeplearning folks
Testing for the deeplearning folksTesting for the deeplearning folks
Testing for the deeplearning folks
Vishwas N
 
Chapter 14 AutoEncoder
Chapter 14 AutoEncoderChapter 14 AutoEncoder
Chapter 14 AutoEncoder
KyeongUkJang
 

Similar to Autoecoders.pptx (20)

Unsupervised Feature Learning
Unsupervised Feature LearningUnsupervised Feature Learning
Unsupervised Feature Learning
 
Autoencoder
AutoencoderAutoencoder
Autoencoder
 
CSSC ML Workshop
CSSC ML WorkshopCSSC ML Workshop
CSSC ML Workshop
 
Tutorial olap4j
Tutorial olap4jTutorial olap4j
Tutorial olap4j
 
Data Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQLData Analysis with TensorFlow in PostgreSQL
Data Analysis with TensorFlow in PostgreSQL
 
Introduction to Parallelization and performance optimization
Introduction to Parallelization and performance optimizationIntroduction to Parallelization and performance optimization
Introduction to Parallelization and performance optimization
 
Data oriented design and c++
Data oriented design and c++Data oriented design and c++
Data oriented design and c++
 
GDSC Introduction to Deep Learning Workshop
GDSC Introduction to Deep Learning WorkshopGDSC Introduction to Deep Learning Workshop
GDSC Introduction to Deep Learning Workshop
 
Meetup 29042015
Meetup 29042015Meetup 29042015
Meetup 29042015
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
ML in Android
ML in AndroidML in Android
ML in Android
 
AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...
AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...
AUTOENCODER AND ITS TYPES , HOW ITS USED, APPLICATIONS , ADVANTAGES AND DISAD...
 
Distributed machine learning 101 using apache spark from a browser devoxx.b...
Distributed machine learning 101 using apache spark from a browser   devoxx.b...Distributed machine learning 101 using apache spark from a browser   devoxx.b...
Distributed machine learning 101 using apache spark from a browser devoxx.b...
 
Embedded Systems PPt.pptx
Embedded Systems PPt.pptxEmbedded Systems PPt.pptx
Embedded Systems PPt.pptx
 
Practical ML
Practical MLPractical ML
Practical ML
 
MySQL Query Optimisation 101
MySQL Query Optimisation 101MySQL Query Optimisation 101
MySQL Query Optimisation 101
 
autoencoder-190813145130.pdf
autoencoder-190813145130.pdfautoencoder-190813145130.pdf
autoencoder-190813145130.pdf
 
Volatile
VolatileVolatile
Volatile
 
Testing for the deeplearning folks
Testing for the deeplearning folksTesting for the deeplearning folks
Testing for the deeplearning folks
 
Chapter 14 AutoEncoder
Chapter 14 AutoEncoderChapter 14 AutoEncoder
Chapter 14 AutoEncoder
 

More from MirzaJahanzeb5

Tasks amenable to AI automation in data science _.pptx
Tasks amenable to AI automation in data science _.pptxTasks amenable to AI automation in data science _.pptx
Tasks amenable to AI automation in data science _.pptx
MirzaJahanzeb5
 
Weak and Strong AI.pptx
Weak and Strong AI.pptxWeak and Strong AI.pptx
Weak and Strong AI.pptx
MirzaJahanzeb5
 
History of AI.pptx
History of AI.pptxHistory of AI.pptx
History of AI.pptx
MirzaJahanzeb5
 
Artificial Intelligence.pptx
Artificial Intelligence.pptxArtificial Intelligence.pptx
Artificial Intelligence.pptx
MirzaJahanzeb5
 
Unit 1 Introduction to Psychology PPT.pptx
Unit 1 Introduction to Psychology PPT.pptxUnit 1 Introduction to Psychology PPT.pptx
Unit 1 Introduction to Psychology PPT.pptx
MirzaJahanzeb5
 

More from MirzaJahanzeb5 (6)

Tasks amenable to AI automation in data science _.pptx
Tasks amenable to AI automation in data science _.pptxTasks amenable to AI automation in data science _.pptx
Tasks amenable to AI automation in data science _.pptx
 
Weak and Strong AI.pptx
Weak and Strong AI.pptxWeak and Strong AI.pptx
Weak and Strong AI.pptx
 
History of AI.pptx
History of AI.pptxHistory of AI.pptx
History of AI.pptx
 
Artificial Intelligence.pptx
Artificial Intelligence.pptxArtificial Intelligence.pptx
Artificial Intelligence.pptx
 
PPT
PPTPPT
PPT
 
Unit 1 Introduction to Psychology PPT.pptx
Unit 1 Introduction to Psychology PPT.pptxUnit 1 Introduction to Psychology PPT.pptx
Unit 1 Introduction to Psychology PPT.pptx
 

Recently uploaded

History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 

Recently uploaded (20)

History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 

Autoecoders.pptx

  • 1. Autoencoders Mirza Jahanzeb Beg Lovely Professional University
  • 2. ● Autoencoders are ○ Artificial neural networks ○ Capable of learning efficient representations of the input data, called codings, without any supervision ○ The training set is unlabeled. ● These codings typically have a much lower dimensionality than the input data, making autoencoders useful for dimensionality reduction Autoencoders Autoencoders
  • 3. Why use Autoencoders? ● Useful for dimensionality reduction ● Autoencoders act as powerful feature detectors, ● And they can be used for unsupervised pre-training of deep neural networks ● Lastly, they are capable of randomly generating new data that looks very similar to the training data; this is called a generative model Autoencoders Autoencoders
  • 4. Autoencoders Why use Autoencoders? For example, we could train an autoencoder on pictures of faces, and it would then be able to generate new faces Autoencoders
  • 5. ● Surprisingly, autoencoders work by simply learning to copy their inputs to their outputs ● This may sound like a trivial task, but we will see that constraining the network in various ways can make it rather difficult Autoencoders Autoencoders
  • 6. Autoencoders Autoencoders For example ● You can limit the size of the internal representation, or you can add noise to the inputs and train the network to recover the original inputs. ● These constraints prevent the autoencoder from trivially copying the inputs directly to the outputs, which forces it to learn efficient ways of representing the data ● In short, the codings are byproducts of the autoencoder’s attempt to learn the identity function under some constraints
  • 7. What we’ll learn ? ● We will explain in more depth how autoencoders work ● What types of constraints can be imposed ● And how to implement them using TensorFlow, whether it is for ○ Dimensionality reduction, ○ Feature extraction, ○ Insupervised pretraining, ○ Or as generative models Autoencoders Autoencoders
  • 8. Let’s try to understand “why constraining an autoencoder during training pushes it to discover and exploit patterns in the data” With an example Autoencoders Efficient Data Representations
  • 9. Which of the following number sequences do you find the easiest to memorize? ● 40, 27, 25, 36, 81, 57, 10, 73, 19, 68 ● 50, 25, 76, 38, 19, 58, 29, 88, 44, 22, 11, 34, 17, 52, 26, 13, 40, 20 Autoencoders Efficient Data Representations
  • 10. ● At first glance, it would seem that the first sequence should be easier, since it is much shorter ● However, if you look carefully at the second sequence, you may notice that it follows two simple rules: ○ Even numbers are followed by their half, ○ And odd numbers are followed by their triple plus one This is a famous sequence known as the hailstone sequence Autoencoders Efficient Data Representations
  • 11. ● Once you notice this pattern, the second sequence becomes much easier to memorize than the first because you only need to memorize the two rules, ○ The first number, ○ And the length of the sequence Autoencoders Efficient Data Representations
  • 12. ● Note that if we could quickly and easily memorize very long sequences, you would not care much about the existence of a pattern in the second sequence ● You would just learn every number by heart, and that would be that ● It is the fact that it is hard to memorize long sequences that makes it useful to recognize patterns, ● And hopefully this clarifies why constraining an autoencoder during training pushes it to discover and exploit patterns in the data Autoencoders Efficient Data Representations
  • 13. The relationship between memory, perception, and pattern matching was famously studied by William Chase and Herbert Simon in the early 1970s Efficient Data Representations William Chase Autoencoders Herbert Simon
  • 14. Let’s see how their study of chess players is similar to an Autoencoder ● They observed that expert chess players were able to memorize the positions of all the pieces in a game by looking at the board for just 5 seconds, ● A task that most people would find impossible ● However, this was only the case when the pieces were placed in realistic positions from actual games, not when the pieces were placed randomly. Autoencoders Efficient Data Representations
  • 15. Let’s see how their study of chess players is similar to an Autoencoder ● Chess experts don’t have a much better memory than you and I, ● They just see chess patterns more easily thanks to their experience with the game ● Noticing patterns helps them store information efficiently Autoencoders Efficient Data Representations
  • 16. Let’s see how their study of chess players is similar to an Autoencoder ● Just like the chess players in this memory experiment, an autoencoder ○ looks at the inputs, ○ converts them to an efficient internal representation, ○ and then spits out something that (hopefully) looks very close to the inputs Autoencoders Efficient Data Representations
  • 17. Composition of Autoencoder An autoencoder is always composed of two parts: ● An encoder or recognition network that converts the inputs to an internal representation, ● Followed by a decoder or generative network that converts the internal representation to the outputs Autoencoders Efficient Data Representations
  • 18. Composition of Autoencoder Efficient Data Representations Autoencoders
  • 19. Composition of Autoencoder Efficient Data Representations An autoencoder typically has the same architecture as a Multi-Layer Perceptron, except that the number of neurons in the output layer must be equal to the number of inputs Autoencoders
  • 20. There is just one hidden layer composed of two neurons (the encoder), and one output layer composed of three neurons (the decoder) Composition of Autoencoder Efficient Data Representations Autoencoders
  • 21. Composition of Autoencoder Efficient Data Representations The outputs are often called the reconstructions since the autoencoder tries to reconstruct the inputs, and the cost function contains a reconstruction loss that penalizes the model when the reconstructions are different from the inputs. Autoencoders
  • 22. Because the internal representation has a lower dimensionality than the input data, it is 2D instead of 3D, the autoencoder is said to be undercomplete Composition of Autoencoder Efficient Data Representations Autoencoders
  • 23. Composition of Autoencoder Efficient Data Representations ● An undercomplete autoencoder cannot trivially copy its inputs to the codings, yet it must find a way to output a copy of its inputs ● It is forced to learn the most important features in the input data and drop the unimportant ones Autoencoders