1. Home
  2. Explore
  3. Computer Science
  4. Deep Learning Lecture 2

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Deep Learning Lecture 2

  • 26Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Neural Network Basics
Logistic regression can be viewed as a neural network with one neuron, consisting of a linear part and a(n)
function.

26 questions

  1. 1
    Logistic 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

  2. 2
    The sigmoid activation function maps any real number to the interval
    _____
    .
    Hint

    Think about the range of a probability.

    Answer

    (0, 1)

  3. 3
    Stacking 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

  4. 4
    The cost function JJJ is defined as the average of
    _____
    over a batch of mmm examples.
    Hint

    Each example has its own measure of error.

    Answer

    loss functions

  5. 5
    Batching multiple examples enables
    _____
    on the GPU, allowing parallel computation.
    Hint

    This technique processes multiple data points simultaneously.

    Answer

    vectorization

  6. 6
    The 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

  7. 7
    During backpropagation, we reuse intermediate values from forward propagation; this practice is called
    _____
    .
    Hint

    We store these values to avoid recomputation.

    Answer

    caching

  8. 8
    The derivative of the sigmoid function σ(z)\sigma(z)σ(z) is $\sigma(z) \cdot (1 - \
    _____
    )$.
    Hint

    It involves the sigmoid function itself.

    Answer

    σ(z)\sigma(z)σ(z)

  9. 9
    When 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

  10. 10
    If 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

  11. 11
    A major disadvantage of the sigmoid activation is that it can cause
    _____
    gradients when zzz is very large or very small.
    Hint

    The gradient becomes extremely small in saturated regions.

    Answer

    vanishing

  12. 12
    The ReLU activation function has a derivative of
    _____
    for z>0z > 0z>0.
    Hint

    ReLU's slope is constant on the positive side.

    Answer

    1

  13. 13
    The derivative of the tanh⁡\tanhtanh activation function is $1 - \
    _____
    $.
    Hint

    It is expressed in terms of the function itself.

    Answer

    tanh⁡2(z)\tanh^2(z)tanh2(z)

  14. 14
    Input normalization involves subtracting the
    _____
    and dividing by the standard deviation.
    Hint

    This centers the data.

    Answer

    mean

  15. 15
    The 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

  16. 16
    Normalizing inputs helps the loss function contours become more
    _____
    , making gradient descent converge faster.
    Hint

    It reduces skewness in the optimization landscape.

    Answer

    spherical

  17. 17
    In 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

  18. 18
    The He initialization for ReLU uses the variance scaling factor 2n[l−1]\sqrt{\frac{2}{n^{[l-1]}}}n[l−1]2​​, where n[l−1]n^{[l-1]}n[l−1] is the number of
    _____
    in the previous layer.
    Hint

    It depends on the size of the incoming connections.

    Answer

    inputs

  19. 19
    The Xavier initialization for tanh uses the scaling factor 1n[l−1]\sqrt{\frac{1}{n^{[l-1]}}}n[l−1]1​​, where n[l−1]n^{[l-1]}n[l−1] is the number of
    _____
    in the previous layer.
    Hint

    It is designed to keep variance stable through layers.

    Answer

    inputs

  20. 20
    The Glorot initialization uses the scaling factor 2n[l−1]+n[l]\sqrt{\frac{2}{n^{[l-1]} + n^{[l]}}}n[l−1]+n[l]2​​, where n[l]n^{[l]}n[l] is the number of
    _____
    in the current layer.
    Hint

    It considers both forward and backward passes.

    Answer

    outputs

  21. 21
    Random 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

  22. 22
    Mini-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

  23. 23
    In 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

  24. 24
    Momentum optimization uses a variable called
    _____
    to smooth updates by considering past gradients.
    Hint

    Think of physical momentum.

    Answer

    velocity

  25. 25
    The momentum update is v=βv+(1−β)dWv = \beta v + (1-\beta) dWv=βv+(1−β)dW, and then $W = W - \alpha \
    _____
    $.
    Hint

    The velocity replaces the raw gradient in the update step.

    Answer

    vvv

  26. 26
    In addition to momentum, other commonly used deep learning optimizers include RMSProp and
    _____
    .
    Hint

    This optimizer combines momentum and adaptive learning rates.

    Answer

    Adam

1 of 26
Question 1 of 26

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent