Deep Learning Lecture 2
- 26Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
26 questions
- 1Logistic regression can be viewed as a neural network with one neuron, consisting of a linear part and a(n)_____function.
Hint
This function introduces non-linearity, and in logistic regression it is often the sigmoid.
Answer
activation
- 2The sigmoid activation function maps any real number to the interval_____.
Hint
Think about the range of a probability.
Answer
(0, 1)
- 3Stacking more layers in a neural network increases the number of parameters, making the network more_____to capture complex data patterns.
Hint
More parameters generally allow the model to fit more intricate functions.
Answer
flexible
- 4The cost function J is defined as the average of_____over a batch of m examples.
Hint
Each example has its own measure of error.
Answer
loss functions
- 5Batching multiple examples enables_____on the GPU, allowing parallel computation.
Hint
This technique processes multiple data points simultaneously.
Answer
vectorization
- 6The loss function for binary classification used in the lecture is called binary cross-entropy or the_____loss.
Hint
It is derived from logistic regression.
Answer
logistic
- 7During backpropagation, we reuse intermediate values from forward propagation; this practice is called_____.
Hint
We store these values to avoid recomputation.
Answer
caching
- 8The derivative of the sigmoid function σ(z) is $\sigma(z) \cdot (1 - \_____)$.
Hint
It involves the sigmoid function itself.
Answer
σ(z)
- 9When using the chain rule for backpropagation, the derivative of the activation function (e.g., sigmoid) introduces an_____product.
Hint
It operates on each component independently.
Answer
element-wise
- 10If no activation function is used (identity activation), a deep network becomes equivalent to_____.
Hint
Without non-linearity, stacking layers does not increase representational power.
Answer
linear regression
- 11A major disadvantage of the sigmoid activation is that it can cause_____gradients when z is very large or very small.
Hint
The gradient becomes extremely small in saturated regions.
Answer
vanishing
- 12The ReLU activation function has a derivative of_____for z>0.
Hint
ReLU's slope is constant on the positive side.
Answer
1
- 13The derivative of the tanh activation function is $1 - \_____$.
Hint
It is expressed in terms of the function itself.
Answer
tanh2(z)
- 14Input normalization involves subtracting the_____and dividing by the standard deviation.
Hint
This centers the data.
Answer
mean
- 15The mean and standard deviation for normalization should be computed on the_____set and then applied to the test set.
Hint
Same parameters are used for consistency.
Answer
training
- 16Normalizing inputs helps the loss function contours become more_____, making gradient descent converge faster.
Hint
It reduces skewness in the optimization landscape.
Answer
spherical
- 17In a deep network with identity activations, if weight matrices are slightly larger than the identity matrix, forward activations will_____.
Hint
Multiplication by values >1 compounds across layers.
Answer
explode
- 18The He initialization for ReLU uses the variance scaling factor n[l−1]2, where n[l−1] is the number of_____in the previous layer.
Hint
It depends on the size of the incoming connections.
Answer
inputs
- 19The Xavier initialization for tanh uses the scaling factor n[l−1]1, where n[l−1] is the number of_____in the previous layer.
Hint
It is designed to keep variance stable through layers.
Answer
inputs
- 20The Glorot initialization uses the scaling factor n[l−1]+n[l]2, where n[l] is the number of_____in the current layer.
Hint
It considers both forward and backward passes.
Answer
outputs
- 21Random initialization of weights helps avoid the_____problem, where neurons learn the same features.
Hint
If all neurons start identically, they may remain identical.
Answer
symmetry
- 22Mini-batch gradient descent combines benefits of batch gradient descent (vectorization) and stochastic gradient descent (_____updates).
Hint
SGD updates after each example; mini-batch updates after a subset.
Answer
quick
- 23In mini-batch gradient descent, the cost function over a batch is the average of the_____for each example in the batch.
Hint
It aggregates individual errors.
Answer
loss
- 24Momentum optimization uses a variable called_____to smooth updates by considering past gradients.
Hint
Think of physical momentum.
Answer
velocity
- 25The momentum update is v=βv+(1−β)dW, and then $W = W - \alpha \_____$.
Hint
The velocity replaces the raw gradient in the update step.
Answer
v
- 26In addition to momentum, other commonly used deep learning optimizers include RMSProp and_____.
Hint
This optimizer combines momentum and adaptive learning rates.
Answer
Adam

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