Chapter 7
Deep Learning and AI Basics
Chapter Review
[7.3, LO 7.3.1]
1. What is the primary role of hidden layers in a neural network?
a. To directly interact with the input data and produce the final output
b. To provide a way for the network to learn and represent complex patterns and
relationships within the data
c. To reduce the number of features of the input data
d. To store the final predictions of the model
Solution: b. Hidden layers in a neural network play a crucial role in enabling the network to
learn and model complex patterns and relationships in the input data. Each hidden layer
consists of neurons that take inputs from the previous layer, process them through activation
functions, and pass the results to the next layer. By having one or more hidden layers, the
network can capture intricate features and hierarchical structures within the data, which allows
it to perform tasks such as classification, regression, and pattern recognition with higher
accuracy. The more hidden layers and neurons a network has, the more complex patterns it can
potentially learn, although this also increases the computational complexity and the risk of
overfitting.
[7.4, LO 7.4.1]
2. What is a convolutional neural network (CNN), and in which scenarios might it perform better
than standard neural networks?
a. A CNN is a type of neural network designed to process sequential data, and it is
particularly effective for tasks like language translation and text generation.
b. A CNN is a type of neural network that includes recurrent layers, making it suitable for
time series prediction and speech recognition.
c. A CNN is a type of neural network that uses convolutional layers to process grid-like
data structures, such as images, and is particularly effective for tasks like image
classification, object detection, and recognizing spatial relationships.
d. A CNN is a type of neural network that relies on decision trees, and it is particularly
effective for classification tasks involving structured tabular data.
Solution: c. Convolutional neural networks (CNNs) are specialized neural networks designed to
process data with a grid-like structure, such as images. They use convolutional layers to
automatically and adaptively learn spatial hierarchies of features from input data. These layers
apply convolutional operations, which are similar to applying filters or masks, to extract local
patterns like edges, textures, and shapes. This capability allows CNNs to excel in tasks where
recognizing spatial relationships and local patterns is crucial, including image classification,
11/11/24 For more free, peer-reviewed, openly licensed resources visit OpenStax.org. 2