The first knowledge of deep learning

Source: Internet
Author: User

In real life, people in order to solve a problem, such as the Classification of objects (objects are documents, images, etc.), the first thing to do is how to express an object, that is, you must extract some characteristics to represent an object, such as the processing of text, often use the word * * to represent a document, or the document in the vector space (called the VSM model), and then the different classification algorithm can be proposed to classify, and in the image processing, we can use the pixel * * to represent an image, and later people put forward a new feature representation, such as SIFT, this feature in many image processing applications, the performance is very good, The effect of feature selection on the final result is enormous. Therefore, it is very important to choose what characteristics to solve a practical problem.
However, the manual selection of features is a very laborious, heuristic method, can be selected to a great extent by experience and luck; since the manual selection of features is not very good, then can you automatically learn some features? The answer is YES! Deep learning is used to do this thing, see it's an alias unsupervised Feature learning, it can be as the name implies, unsupervised means not to participate in the selection process of character. Therefore, the method of learning features automatically, collectively referred to as deep learning.
1) The basic idea of deep learning
Suppose we have a system s, which has n layers (S1,... SN), its input is I, the output is O, the image is expressed as: I =>s1=>s2=>.....=>sn = o, if the output o equals input I, that is, input I after this system changes without any loss of information, remained unchanged, This means that the input I passes through every layer of SI without any loss of information, that is, in any layer of SI, it is another representation of the original information (that is, input i). Now back to our topic deep learning, we need to automatically learn features, assuming we have a bunch of input I (such as a heap of images or text), suppose we design a system s (with N-layers), we adjust the system parameters, so that its output is still input I, Then we can automatically get a series of hierarchical features of input I, namely S1, ..., Sn.
In addition, the previous assumption that the output is strictly equal to the input, this restriction is too strict, we can slightly relax the limit, for example, as long as we make the input and output differences as small as possible, this relaxation will lead to another class of different deep learning methods. The above is the basic idea of deep learning.
2) Common methods of deep learning
a). Autoencoder
The simplest way is to use the characteristics of artificial neural network, Artificial neural Network (ANN) itself is a hierarchical structure of the system, if given a neural network, we assume that its output is the same as the input, and then train to adjust its parameters, to get the weights in each layer, naturally, We have several different representations of input I (each layer represents a representation), these representations are features, which can be found in the study, if the characteristics of the original features can be added to the automatic learning to improve the accuracy of the features, even in the classification of the best classification algorithm than the current effect is better! This method is called Autoencoder. Of course, we can continue to add some constraints to get the new deep learning method, such as if Autoencoder based on the L1 regularity limit (L1 is mainly constrained in each layer of the nodes in most of the 0, only a few are not 0, This is the source of the sparse name, and we can get the sparse Autoencoder method.
b). Sparse Coding
If we loosen the output to be equal to the input, and take advantage of the concept of the base in linear algebra, i.e. o = w1*b1 + w2*b2+....+ wn*bn, bi is the base and WI is the coefficient, we can get an optimization problem like this:
Min | i–o|
By solving this optimization equation, we can obtain the coefficients WI and the base bi, these coefficients and the basis is another kind of approximate expression of the input, so they can be characterized to express input I, the process is also automatic learning to get. If we add the L1 regularity limit to the above equation, we get:
Min | i–o| + u* (| Y12 + | w2| + ... + | wn|)
This method is called sparse Coding.
c) Restrict Boltzmann machine (RBM)
Suppose there is a two-part diagram, there is no link between the nodes of each layer, one layer is the visible layer, that is, the input data layer (v), the first layer is the hidden layer (h), if all nodes are assumed to be two value variable nodes (only 0 or 1 values), assuming that the full probability distribution P (V, h) We call this model the Restrict Boltzmann machine (RBM). Let's take a look at why it is a deep learning method. First of all, since this model is a two-part diagram, in the case of known V, all the hidden nodes are conditionally independent, i.e. P (h|v) =p (h1|v) .... P (hn|v). Similarly, in the case where the hidden layer h is known, all the visible nodes are conditionally independent, and since all V and H satisfy the Boltzmann distribution, when input V, the hidden layer h can be obtained by P (H|V), and the visible layer can be obtained by P (v|h) after the hidden layer h is obtained. By adjusting the parameters, we are to make the visible layer from the hidden layer V1 and the original visual layer v if the same, then the resulting hidden layer is a visual layer of another expression, so the hidden layer can be used as the visual layer input data features, so it is a deep learning method.
If we increase the number of layers in the hidden layer, we can get deep Boltzmann machine (DBM); If we use Bayesian belief networks (i.e., the graph model, which is still limited to the nodes in the layer) near the visible layer, With restrict Boltzmann machine, we can get deep belief Net (DBN) in the most remote part of the visual layer.
Of course, there are some other deep learning methods, which are not described here. In short, deep learning can automatically learn a different representation of the data, which can be used as a feature to add the characteristics of the original problem * *, so as to improve the effectiveness of learning methods, is currently the industry's research hotspot.

The first knowledge of deep learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.