Neural Network Pattern Recognition
- 74Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What kinds of patterns are neural networks suited to learn?
They are suited to learning many different types of patterns, including patterns that are difficult to describe with simple rules.
Or swipe the card
74 cards
What kinds of patterns are neural networks suited to learn?
They are suited to learning many different types of patterns, including patterns that are difficult to describe with simple rules.
Why can simple brightness rules fail to classify four-pixel images?
Different patterns, such as horizontal lines, can have different pixel arrangements and brightness values, so a simple rule for which pixels are bright or dark may not identify the pattern reliably.
How are the pixels of a four-pixel black-and-white image represented in a neural network?
Each pixel is represented by an input neuron.
How are pixel brightness values encoded for input neurons?
A completely white pixel is represented by +1, a completely black pixel by −1, and gray by 0.
What is an input vector or input array?
It is a list of numbers representing the current inputs to a neural network.
What is a neuron's receptive field?
A neuron's receptive field is the set of input patterns that makes the neuron's value as high as possible.
What is the receptive field of an input neuron?
It consists of the single pixel associated with that input neuron.
Which pixels affect the value of a particular input neuron?
Only its associated pixel affects its value; other pixels do not affect it.
What does a neural network ultimately learn in the four-pixel classification example?
It learns to classify images as solid, vertical, diagonal, or horizontal.
What two operations define a basic artificial neuron?
It computes a weighted sum of its inputs and then applies an activation or squashing function.
What is a weighted sum in a neural network?
It is the sum of each input value multiplied by the weight of its connection.
What does a positive connection weight do?
It contributes a positive multiple of the input to the neuron's total.
What does a negative connection weight do?
It contributes the negative of the input, reducing the weighted sum when the input is positive.
What does a connection weight of zero mean?
The connection is effectively ignored.
What do the color and thickness of links represent in a neural-network diagram?
White links represent positive weights, black links represent negative weights, and line thickness represents the approximate magnitude of the weight.
What is the output of a neuron after its weighted inputs are processed?
The output is the activated value produced after the weighted sum is passed through the neuron's activation function.
What range does the described sigmoid neuron produce?
Its output remains between −1 and +1.
Why is bounding neuron values useful?
It helps keep computations in the neural network bounded and stable.
How can a layer contain many neurons while using the same basic computation?
Each neuron computes its own weighted sum of inputs and applies an activation function, using its own set of weights.
What is a neural-network layer?
A layer is a collection of neurons that receive inputs and produce outputs at the same stage of processing.
How are neurons in one layer generally connected to the previous layer?
Each neuron is connected to all neurons in the previous layer, although some weights may be zero.
How does the output of one layer become useful to the next layer?
The output of one layer serves as the input to the next layer.
How do receptive fields change in deeper layers?
They become increasingly complex because deeper neurons combine the receptive fields of neurons in earlier layers.
What receptive field results when a neuron combines two input pixels with positive weights?
The neuron is most active for the corresponding combination of those two pixels, such as both being white.
How does a negative weight change a neuron's receptive field?
It makes the neuron respond strongly when the associated input has the opposite value, such as when a pixel is black rather than white.
Why can a first-layer neuron detect a pair of pixels rather than one pixel?
Because it combines multiple input neurons through weighted connections.
What happens when additional layers are added to a neural network?
The network can represent increasingly complex patterns and arrangements of the original inputs.
What does it mean for a network to be fully connected?
Every neuron in one layer has a connection to every neuron in the preceding layer.
What is a sigmoid function?
It is an S-shaped activation function that maps an input to a bounded output.
How does a sigmoid function respond to increasingly large positive inputs?
Its output increases but more slowly, eventually remaining below +1.
How does a sigmoid function respond to increasingly large negative inputs?
Its output remains above −1 and approaches that lower bound.
What is a rectified linear unit, or ReLU?
It is an activation function that outputs 0 for a negative input and keeps a positive input unchanged.
Why are rectified linear units useful in neural networks?
They are easy to compute and have useful stability properties.
What kind of receptive fields can arise when ReLU neurons receive positive and negative connections?
They can represent patterns and their opposites.
What is the purpose of the output layer in the four-pixel example?
It produces outputs indicating whether the image is solid, vertical, diagonal, or horizontal.
How does the example network classify an image as horizontal?
The horizontal output becomes positive while the other output values are zero, so the network selects horizontal.
What happens to a negative value when it passes through a ReLU?
It becomes 0.
What is the truth value for an image that is actually horizontal in the example?
The horizontal output has value 1, while the solid, vertical, and diagonal outputs have value 0.
What is the error of a neural network's prediction?
It is the magnitude of the difference between the truth and the network's answer.
How can total network error be calculated from multiple outputs?
The errors for the individual outputs can be added together.
What is the main goal of neural-network training?
To adjust the weights so that the error becomes as small as possible.
What basic training loop is used to improve a neural network?
Provide an input, calculate the output error, determine how the weights should change, and adjust the weights to reduce the error.
Why is independently testing every possible weight adjustment impractical for a large neural network?
It would require recalculating the network's error repeatedly for every weight, which is computationally prohibitively expensive.
What does the multidimensional-valley analogy represent in neural-network training?
The network's weights define a point in a high-dimensional error landscape, and training seeks a low-error location.
What does it mean for weights to settle into a low spot in the error landscape?
The weights have reached a configuration that produces relatively low error on the training examples.
What is a gradient in the context of neural-network training?
It describes how the error changes as a weight changes and indicates the direction for adjusting the weight.
What does the derivative rac{dE}{dW} represent?
It represents the change in error E produced by a change in weight W.
If increasing a weight by 1 changes the error by −2, what is the slope?
The slope is −2.
How does the sign of a slope guide a weight adjustment?
It indicates which direction the weight should be changed to reduce the error.
For the error function E=W2, what is the derivative with respect to W?
rac{dE}{dW} = 2W
For E=W2 at W=−1, what is rac{dE}{dW}?
−2.
Why can calculating gradients make neural-network training practical?
Gradients provide the needed weight-adjustment directions without recalculating the entire network's error for every possible weight change.
What mathematical tool is used to calculate slopes in neural networks?
Derivatives from calculus.
What is the chain rule's role in neural-network training?
It combines the derivatives of successive operations to calculate how a deep network's error changes with respect to an earlier weight.
In a simple network with Y=XW1, what is rac{dY}{dW_1}?
X.
If E=YW2, what is rac{dE}{dY}?
W2.
If E=XW1W2, what is rac{dE}{dW_1}?
XW2
How does the chain rule express rac{dE}{dW_1} in the simple network?
rac{dE}{dW_1} = rac{dY}{dW_1}rac{dE}{dY}
What is backpropagation?
Backpropagation is the process of calculating how the error changes with respect to network weights by chaining local derivatives backward through the network.
How is backpropagation applied to a weight deep in a network?
Calculate the derivative for each operation between the output error and that weight, then multiply all those derivatives together.
For a weighted connection B=AW, what is rac{dB}{dA}?
W.
For a sum Z=A+extotherterms, what is rac{dZ}{dA}?
1.
What is the derivative of the sigmoid activation in terms of its output?
The derivative is the sigmoid output multiplied by one minus the sigmoid output: y(1−y).
What is the derivative of a ReLU with respect to its input?
It is 1 when the input is positive and 0 when the input is negative.
How does training begin in the described neural network?
Start with a fully connected network and assign random values to all its weights.
What kind of training input is needed to calculate an error?
An input for which the correct answer, or truth, is known.
What happens after the error is calculated during training?
Backpropagation is used to adjust all weights slightly in the direction that reduces the error.
Why are training examples processed repeatedly?
Repeated updates gradually move the weights toward values that produce low error on many inputs.
What does it mean for weights to 'gravitate' toward a low-error region?
Repeated gradient-based adjustments move them toward a configuration that performs well.
What performance can a successfully trained network achieve?
It can produce predictions close to the correct truth for most of its input images.
What is a sparse representation in a neural network?
It is a representation in which most weights are small or close to zero.
What may be intuitively understandable about a well-trained network's receptive fields?
They may correspond to recognizable patterns in the input, such as particular pixel arrangements.
Is training guaranteed to produce intuitive receptive fields and sparse weights?
No. These properties may occur, but they are not guaranteed.
What is the overall objective of adjusting weights across all training inputs?
To find the best possible weight configuration for producing answers close to the correct outputs across the inputs.

Ask anything
We've read this whole study set, so questions about it get the best answers.