Autoencoder principle and implementation using Pytorch framework (AutoEncoder)

Table of contents

1. Autoencoder generates background

2. Principle of autoencoder

(1) General neural network structure

(2) Autoencoder

3. Implementation of autoencoder

(1) Network structure

(2) Code implementation


1. Autoencoder generates background

        Image classification, object recognition, and image segmentation are all based on supervised learning, so massive amounts of data need to be labeled manually. However, with the development of the times and the continuous popularity of artificial intelligence, the demand for data volume is no longer what it imagined, and the demand for data volume has far exceeded people's cognition. In the face of massive data sets, is there a way to learn the algorithm of the distribution P(x) of the data?

        Hint: while solving the algorithm above computes unsupervised learning.

2. Principle of autoencoder

(1) General neural network structure

     

        Can the powerful nonlinear expression ability of neural network be used to learn low-dimensional data representation? But this will also introduce a problem, that is, the training of the neural network is under the condition of labels. For an unsupervised learning, there is no label, only the input data itself x.

(2) Autoencoder

 

        We hope that the final output from the encoder to the decoder is approximately equal to the original input, so the optimization goal of the autoencoder is as follows:

3. Implementation of autoencoder

(1) Network structure

(2) Code implementation

Download the code for this article: GitHub - KeepTryingTo/Pytorch-GAN: The process of using Pytorch to implement GAN

Reference Books and Links

"TensorFlow Deep Learning"

Introduction to relevant knowledge points of autoencoders

Guess you like

Origin blog.csdn.net/Keep_Trying_Go/article/details/130541755
Recommended