concept neuron in category deep learning

This is an excerpt from Manning's book Deep Learning for Vision Systems.
In the figure above, we can see that there is an analogy between the biological neurons and artificial systems. Both contain a main processing element called neuron with input signal X1,X2,...,Xn and an output.
The learning behavior of biological neurons inspired scientists to create a network of neurons that are connected to each other. Imitating how information is processed in the human brain, each individual artificial neuron will fire a signal to all neurons that it’s connected to when enough of its input signals are activated. Thus, neurons have a very simple mechanism on the individual level (as you will see in the next chapter), but when you start to have many, many (millions) of these neurons stacked in layers and connected together, each of these neurons are connected to thousands of other neurons, this yields a learning behavior. Building a multi-layer neural network is called Deep Learning.
Figure 1.5
![]()
Deep learning methods learn representations through a sequence of transformations of the data through layers of neurons. In this book we will explain different deep learning architectures like ANNs, Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) and how they are used in computer vision applications.
Then, we will move on to a more complex neural network architecture that contain hundreds of neurons to solve more complex problems. This network is called Multi-Layer Perceptrons (MLPs). Where neurons are stacked in layers called hidden layers. Here, you will learn the main components of the neural network architecture: 1) input layer, 2) hidden layers, 3) weight connections, and 4) output layer.
def generator_model(): # instantiate a sequential model and name it generator generator = Sequential() # add the Dense layer that has a number of neurons = 128x7x7 generator.add(Dense(128 * 7 * 7, activation="relu", input_dim=100)) # reshape the image dimensions to 7 x 7 x 128 generator.add(Reshape((7, 7, 128))) # upsampling layer to double the size of the image dimensions to 14 x 14 generator.add(UpSampling2D(size=(2,2))) # add a convolutional layer to run the convolutional process + batchNorm generator.add(Conv2D(128, kernel_size=3, padding="same", activation="relu")) generator.add(BatchNormalization(momentum=0.8)) # upsample the image dimensions to 28 x 28 generator.add(UpSampling2D(size=(2,2))) # conv + batchNorm layers # notice that we didn’t add upsampling here because we have the image size of 28 x 28 which is equal to the image size in the MNIST dataset. You can adjust this for your own problem. generator.add(Conv2D(64, kernel_size=3, padding="same", activation="relu")) generator.add(BatchNormalization(momentum=0.8)) # convolutional layer with filters = 1 generator.add(Conv2D(1, kernel_size=3, padding="same", activation="relu")) # print the model summary generator.summary() # generate the input noise vector of length = 100 # we chose 100 here to create a simple network noise = Input(shape=(100,)) # run the generator model to create the fake image fake_image = generator(noise) # return a model that takes the noise vector as an input and outputs the fake image return Model(noise, fake_image)

This is an excerpt from Manning's book Grokking Deep Learning.
This book began with small lessons and then built layers of abstraction on top of them. We began by talking about the ideas behind machine learning in general. Then we progressed to how individual linear nodes (or neurons) learned, followed by horizontal groups of neurons (layers) and then vertical groups (stacks of layers). Along the way, we discussed how learning is actually just reducing error to 0, and we used calculus to discover how to change each weight in the network to help move the error in the direction of 0.
Next, we discussed how neural networks search for (and sometimes create) correlation between the input and output datasets. This last idea allowed us to overlook the previous lessons on how individual neurons behaved because it concisely summarizes the previous lessons. The sum total of the neurons, gradients, stacks of layers, and so on lead to a single idea: neural networks find and create correlation.
The third constraint requires a bit of recollection back to chapter 6. Remember sometimes correlation? In order to create it, you had to allow the neurons to selectively correlate to input neurons such that a very negative signal from one input into a neuron could reduce how much it correlated to any input (by forcing the neuron to drop to 0, in the case of relu).
As it turns out, this phenomenon is facilitated by any function that curves. Functions that look like straight lines, on the other hand, scale the weighted average coming in. Scaling something (multiplying it by a constant like 2) doesn’t affect how correlated a neuron is to its various inputs. It makes the collective correlation that’s represented louder or softer. But the activation doesn’t allow one weight to affect how correlated the neuron is to the other weights. What you really want is selective correlation. Given a neuron with an activation function, you want one incoming signal to be able to increase or decrease how correlated the neuron is to all the other incoming signals. All curved lines do this (to varying degrees, as you’ll see).
But the end goal of delta on a neuron is to inform the weights whether they should move. If moving them would have no effect, they (as a group) should be left alone. This is obvious for relu, which is either on or off. sigmoid is, perhaps, more nuanced.
![]()
Consider a single sigmoid neuron. sigmoid’s sensitivity to change in the input slowly increases as the input approaches 0 from either direction. But very positive and very negative inputs approach a slope of very near 0. Thus, as the input becomes very positive or very negative, small changes to the incoming weights become less relevant to the neuron’s error at this training example. In broader terms, many hidden nodes are irrelevant to the accurate prediction of a 2 (perhaps they’re used only for 8s). You shouldn’t mess with their weights too much, because you could corrupt their usefulness elsewhere.