Artificial Neural Networks
- 62Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What biological system provides the basic inspiration for artificial neural networks?
62 questions
- 1
What biological system provides the basic inspiration for artificial neural networks?
Model answer
Artificial neural networks are inspired by the human nervous system, in which neurons receive signals, process them, and activate in ways that influence decisions and actions.
Explanation
The content uses examples such as avoiding a rapidly approaching car and feeling relaxed while listening to music to illustrate this inspiration.
- 2
How does the nervous system help a person decide to avoid a rapidly approaching car?
Model answer
The eyes and ears receive signals about the car, neurons process those signals, and the activation of particular neurons leads the person to jump away.
Explanation
The example shows a sequence of sensory input, neural processing, selective neuron activation, and action.
- 3
Why can different situations produce different actions or feelings in the nervous system?
Model answer
Different input signals activate different groups of neurons, and the activated neurons influence the resulting decision, action, or feeling.
Explanation
Avoiding a car and feeling relaxed from music involve different inputs and different activated neurons.
- 4
What general process do artificial neural networks imitate from biological neurons?
Model answer
They receive input signals, perform processing, activate units based on the processed values, and produce an output or decision.
Explanation
This is the central analogy between biological neural processing and artificial neural-network computation.
- 5
What types of applications are identified as using neural networks?
Model answer
Examples include ChatGPT, Gemini, Tesla self-driving cars, enterprise systems, and bank fraud-detection systems.
Explanation
These examples demonstrate that neural networks are used in language systems, autonomous vehicles, and business applications.
- 6
What determines the decision produced by a neural network?
Model answer
The decision depends on how the network processes the input signals and which neurons become activated.
Explanation
Activation patterns change according to the input and the computations performed by the network.
- 7
What is the role of the input layer in an artificial neural network?
Model answer
The input layer receives the data used by the neural network and passes it to the next layer; it does not perform the main processing calculations.
Explanation
The content describes the input layer as a data-entry and transmission layer.
- 8
What is the role of a hidden layer?
Model answer
A hidden layer performs calculations and processing on the inputs received from the preceding layer.
Explanation
The hidden layer is where the network begins transforming input data into information useful for making a prediction.
- 9
How many hidden layers or neurons can a neural network contain?
Model answer
A neural network can contain multiple hidden layers, and each hidden layer can contain as many neurons as the architecture requires.
Explanation
The example uses one hidden layer with two neurons only for simplicity.
- 10
What is the role of the output layer?
Model answer
The output layer processes information from the previous layer and produces the neural network's final decision or prediction.
Explanation
The output is determined by calculations based on the activations passed from the preceding layer.
- 11
How are neurons in one layer connected to the neurons in the next layer in the described architecture?
Model answer
Each neuron in a layer passes information to all neurons in the following layer.
Explanation
The content describes connections from all input neurons to all hidden neurons and from all hidden neurons to the output neuron.
- 12
What is forward propagation?
Model answer
Forward propagation is the process in which data moves from the input layer through the hidden layer or layers to the output layer.
Explanation
The network uses this forward flow to calculate an output prediction.
- 13
Why is it useful to understand an example before studying neural-network formulas?
Model answer
An example provides context for what data is being passed and why each mathematical calculation is performed, making the formulas easier to understand.
Explanation
The content emphasizes that formulas can be difficult to interpret when their purpose is not connected to a concrete problem.
- 14
What four features are used in the fitness-classification example?
Model answer
The features are weekly exercise hours, weekly junk-food consumption, daily sleep duration, and daily water consumption in liters.
Explanation
These four measurements are used as inputs to predict whether a person is fit.
- 15
What is the label in the fitness-classification example?
Model answer
The label indicates whether the person is fit or unfit.
Explanation
The label is the outcome the neural network is trained to predict from the four features.
- 16
Why is the fitness example a binary-classification problem?
Model answer
It is binary classification because there are only two possible outcomes: fit or unfit.
Explanation
The example represents fit with 1 and unfit with 0.
- 17
What is labeled data, and why is it used during training?
Model answer
Labeled data contains both input features and their known outcomes, allowing the network to learn how the features relate to the target label.
Explanation
The fitness data is labeled because the correct fit or unfit outcome is already known.
- 18
What should the trained network do when given a person's features without the label?
Model answer
It should predict whether that person is fit or unfit.
Explanation
Training enables the network to infer the missing label from the person's feature values.
- 19
How are the four features initially supplied to the network?
Model answer
Each feature is assigned to one of four neurons in the input layer.
Explanation
For example, a feature value such as 6 is assigned to an input variable such as x1.
- 20
Why does an untrained neural network initially not know how to classify a person's data?
Model answer
At the beginning, the network has not yet learned which features are important or how their values relate to the fit or unfit outcome.
Explanation
It receives numerical values but has not yet learned the relationships needed to interpret them.
- 21
What does a weight represent in a neural network?
Model answer
A weight represents the importance or influence assigned to an input when calculating a neuron's activation.
Explanation
A larger positive or negative weight changes how strongly the corresponding feature affects the neuron's result.
- 22
Why are weights initially assigned randomly?
Model answer
They are initialized randomly because the untrained network does not yet know which features should receive greater or lesser importance.
Explanation
Training later adjusts the random weights based on prediction errors.
- 23
What computation is performed before applying an activation function?
Model answer
The network multiplies each input by its corresponding weight, adds the products, and then adds a bias, giving z=sumixiwi+b.
Explanation
This weighted-sum calculation is the first processing step performed by a neuron.
- 24
What is the purpose of the bias term in a neuron's calculation?
Model answer
The bias is an additional value added to the weighted sum before activation, allowing the neuron's result to be shifted.
Explanation
The content includes bias in the expression z=sumixiwi+b, although it does not provide a deeper interpretation.
- 25
What does it mean for a neuron to be activated?
Model answer
Activation means that the neuron's processed value indicates a positive response that contributes to the network's prediction.
Explanation
In the example, an activated hidden neuron is described as moving toward a response associated with fitness.
- 26
What is the ReLU activation function described in the content?
Model answer
ReLU returns the positive input value and returns zero when the input is negative; mathematically, it can be written as operatornameReLU(z)=max(0,z).
Explanation
Thus, a positive value such as 11.15 remains 11.15, while a negative value does not activate the neuron.
- 27
How does a negative weighted-sum result affect a neuron using ReLU?
Model answer
A negative result is converted to zero, so the neuron is not activated.
Explanation
ReLU removes negative responses while preserving positive ones.
- 28
Why might different neurons in the same hidden layer produce different values?
Model answer
They may have different randomly initialized weights and biases, so the same input features produce different weighted sums.
Explanation
The example gives one hidden neuron a result of 11.15 and another a result of 7.95 because their weights differ.
- 29
Which activation function is recommended for the output layer of a binary-classification network?
Model answer
The sigmoid activation function is recommended for the output layer of a binary-classification network.
Explanation
Sigmoid is preferred because it maps the output to a value between 0 and 1.
- 30
What is the sigmoid activation function?
Model answer
The sigmoid function is sigma(z)=frac11+e−z, which maps a numerical input to a value between 0 and 1.
Explanation
This range makes the output useful for interpreting a binary prediction or confidence value.
- 31
How is a sigmoid output interpreted in the described binary-classification example?
Model answer
An output from 0 to 0.5 is treated as not activated, while an output from 0.5 to 1 is treated as activated.
Explanation
The threshold of 0.5 separates the unfit and fit interpretations in the example.
- 32
What does an activated output neuron represent in the fitness example?
Model answer
It represents the prediction that the person is fit.
Explanation
The output neuron is activated when the network's result crosses the stated sigmoid threshold.
- 33
What does a sigmoid output close to 1 indicate?
Model answer
It indicates greater confidence in the positive class, which in this example is that the person is fit.
Explanation
The example interprets an output of approximately 0.99 as strong confidence in fitness.
- 34
Why is sigmoid more suitable than ReLU for the output of this binary classifier?
Model answer
Sigmoid produces a bounded value between 0 and 1, which can be interpreted as a binary-classification score or confidence, whereas ReLU does not have this bounded output range.
Explanation
The output range supports thresholding and confidence interpretation.
- 35
What does it mean that forward propagation is complete?
Model answer
It means the input data has passed through the network to the output layer and the network has produced a prediction.
Explanation
Forward propagation ends when the output neuron produces its result.
- 36
What programming libraries are mentioned for implementing neural networks?
Model answer
The content mentions TensorFlow and Keras, as well as PyTorch as another possible choice.
Explanation
These libraries automate the numerical operations involved in constructing and training neural networks.
- 37
Why should someone understand the calculations behind a neural network even when libraries automate them?
Model answer
Understanding the calculations helps a practitioner know what is happening inside the network and train it more effectively.
Explanation
Libraries reduce the amount of code required, but they do not eliminate the need to understand activation functions, losses, and optimization.
- 38
What does a short neural-network program automatically perform?
Model answer
It automatically performs the weighted calculations and activation operations specified by the network architecture.
Explanation
The content emphasizes that a few lines of code can replace the many manual calculations shown in the example.
- 39
What two training components must be specified for the backward-training stage?
Model answer
The program must specify a loss function, such as binary cross-entropy, and an optimizer, such as gradient descent.
Explanation
The loss measures prediction error, while the optimizer updates the network's weights.
- 40
What is backpropagation?
Model answer
Backpropagation is the process of sending the error information backward through the network to determine how the weights contributed to the loss and should be adjusted.
Explanation
The process moves backward one layer at a time from the output toward earlier layers.
- 41
What is a loss function used for?
Model answer
A loss function measures how far the network's predicted output is from the actual output.
Explanation
The resulting loss guides the adjustment of the network's weights.
- 42
Why is binary cross-entropy appropriate for the fitness example?
Model answer
Binary cross-entropy is appropriate because the target has two possible classes: fit and unfit.
Explanation
The content identifies binary cross-entropy as a suitable loss function for binary classification.
- 43
How should a loss value close to zero be interpreted?
Model answer
A loss close to zero means the prediction is correct or very close to the correct output.
Explanation
Smaller loss indicates less disagreement between the prediction and the actual label.
- 44
How should a large loss value be interpreted?
Model answer
A large loss means the predicted output is far from the correct output.
Explanation
The loss quantifies the seriousness of the prediction error.
- 45
Why does binary cross-entropy assign a heavy penalty to an incorrect confident prediction?
Model answer
It gives a large loss when the network makes a strongly incorrect prediction, encouraging training to adjust the weights substantially in response to that error.
Explanation
Penalizing confident mistakes helps guide the network away from incorrect parameter settings.
- 46
What is gradient descent used for in neural-network training?
Model answer
Gradient descent is used to update the network's weights so that the loss becomes smaller.
Explanation
It uses information about how each weight affects the loss to choose an adjustment direction.
- 47
What does a derivative indicate during weight adjustment?
Model answer
The derivative indicates how much a particular weight contributes to the loss and therefore how that weight should change.
Explanation
The content describes the derivative as measuring the effect of a current weight on the loss.
- 48
What is the learning rate?
Model answer
The learning rate controls the size of the weight updates made during gradient descent.
Explanation
It determines how far the training process moves toward reducing the loss at each step.
- 49
What can happen if the learning rate is too small?
Model answer
The loss decreases only gradually, so training may require many steps to approach a low-loss value.
Explanation
Small updates are stable but can make learning slow.
- 50
What can happen if the learning rate is too large?
Model answer
The loss may overshoot the desired minimum and oscillate instead of steadily approaching zero.
Explanation
Large updates can repeatedly move the parameters from one side of the low-loss region to the other.
- 51
What is the general weight-update relationship described for gradient descent?
Model answer
A new weight is obtained by subtracting a learning-rate-scaled gradient from the old weight, expressed as wnew=wold−etafracpartialLpartialw.
Explanation
The subtraction moves the weight in the direction that reduces the loss, where eta is the learning rate.
- 52
Why might a positive weight for junk-food consumption become negative during training?
Model answer
If junk-food consumption is associated with being unfit, training can adjust its weight so that the feature has a negative influence on the fitness prediction.
Explanation
The example illustrates learning a negative relationship from the data.
- 53
How does repeated training cause a neural network to learn?
Model answer
The network repeatedly performs forward propagation, calculates the loss, backpropagates the error, and updates its weights using gradient descent.
Explanation
Repeated passes gradually improve the parameter values and reduce prediction error.
- 54
What is the relationship between forward propagation and backward propagation?
Model answer
Forward propagation produces a prediction from the input, while backward propagation uses the prediction error to adjust the weights that produced it.
Explanation
Together they form the central cycle used to train the network.
- 55
What happens when the network is trained on hundreds, thousands, or millions of examples?
Model answer
The weights are repeatedly updated, allowing the network to learn broader patterns and eventually form a generalized model.
Explanation
Using many examples helps the network learn relationships that can apply to new data.
- 56
What is a generalized model?
Model answer
A generalized model is a trained neural network that can use learned patterns to make predictions on new, unlabeled data.
Explanation
The fitness example uses the generalized model to classify a new person as fit or unfit.
- 57
Why can a trained neural network not be expected to be 100 percent accurate?
Model answer
A neural network learns patterns from data and can make highly accurate predictions, but its predictions are not guaranteed to be correct in every case.
Explanation
The content states that neural networks can achieve very good accuracy without being perfectly accurate.
- 58
What condition is necessary before data is passed to a neural network for effective learning?
Model answer
The data must be properly cleaned and prepared before being supplied to the network.
Explanation
The content identifies data preparation as an important part of successful neural-network training.
- 59
Why must nonnumeric data such as an image be converted into numbers before entering a neural network?
Model answer
Neural networks process numerical inputs, so an image must be represented numerically before the network can classify it.
Explanation
The content states that neural networks, like other machine-learning systems, understand numbers rather than raw nonnumeric objects.
- 60
What is image classification?
Model answer
Image classification is the task of using numerical representations of images to determine which category or class an image belongs to.
Explanation
The next application described is recognizing which handwritten digit appears in an image.
- 61
Why is handwritten-digit recognition a multiclass-classification problem?
Model answer
It is multiclass classification because the possible digit classes range from 0 through 9, giving more than two possible outcomes.
Explanation
Unlike the fit-or-unfit example, digit recognition must choose among ten classes.
- 62
What is the difference between binary classification and multiclass classification?
Model answer
Binary classification chooses between two classes, whereas multiclass classification chooses among more than two classes.
Explanation
Fit versus unfit is binary, while recognizing digits from 0 to 9 is multiclass.

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