[Lecture 4] Neural Networks (neural network)

Classroom questions

  • What does W1 and W2 mean in a 2-layer simple neural network?
    Insert picture description here
    Answer : W1 can still be regarded as a variety of templates in the linear classifier we learned, and h h represents the scores of these templates, and W2 combines these template scores to form a new complex template.
    For example, in the above example, suppose we have both a left-facing horse and a right-facing horse. For a left-facing horse, one template may be higher than the other, and then the m a x max after retain its left side is a fraction of a horse.
    Note: here m a x ( 0 , W 1 X ) max(0,W_1X) The template score with a lower value may be omitted, and nonlinearity is also introduced, as shown in the figure h h

1. Introduction to Neural Networks

Linear function f ( W ; X ) = W X f(W;X) = WX not the same, the neural network can be seen as (hierarchical stacked) consisting of a set of complex functions simplenonlinearmapping function. For example, the simple linear function in the figure below, and the 2-layer and 3-layer simple neural network.
Insert picture description here
Single neuron analogy

The dendrites in the neuron receive the pulse signal, and then the cell body processes it, and then transmits it to the next neuron through the axon. This is similar to the calculation of a single function gate in our calculation diagram to receive input, calculation and activation with an activation function, but it is much more complicated.
Insert picture description here
For example, the common activation functions are as follows:
Insert picture description here
vectorization calculation of neurons

As mentioned above, a "neural unit" receives a lot of input, and then calculates and outputs it. Therefore, in general, we treat the input of a neuron as a vector for calculation. For example, the simple double hidden layer neural network example and its forward propagation process are illustrated below.

Insert picture description here

2. Official notes

Published 19 original articles · Like1 · Visits 499

Guess you like

Origin blog.csdn.net/qq_41341454/article/details/105454302