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

Study methods

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

Deep Learning Intro

  • 34Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Logistic Regression
Logistic regression can be interpreted as a specific case of a neural network with a single
.

34 questions

  1. 1
    Logistic regression can be interpreted as a specific case of a neural network with a single
    _____
    .
    Hint

    Think of the smallest building block of a neural network.

    Answer

    neuron

  2. 2
    A 64x64 color image is represented by a 3D matrix of size 64x64x
    _____
    .
    Hint

    Consider the number of color channels in a typical color image.

    Answer

    3

  3. 3
    To use logistic regression, the image matrix is flattened into a
    _____
    .
    Hint

    Think of reducing the dimensionality of the input to a 1D structure.

    Answer

    vector

  4. 4
    In logistic regression, the linear part is computed as $wx +
    _____
    ,where, where ,wherex$ is the input.
    Hint

    This term is often called the bias or intercept.

    Answer

    b

  5. 5
    The sigmoid function maps any real number to a value between 0 and
    _____
    .
    Hint

    It squashes the output to a probability-like range.

    Answer

    1

  6. 6
    If input xxx is a column vector of size 12288x1, then www must be a row vector of size 1 x
    _____
    .
    Hint

    The dimensions must match for the dot product to work.

    Answer

    12288

  7. 7
    For input size n=12288n=12288n=12288, logistic regression has
    _____
    weights and 1 bias.
    Hint

    Each input feature has a corresponding weight.

    Answer

    12288

  8. 8
    The training process involves initialization, optimization, and
    _____
    .
    Hint

    After finding good parameters, you use the model for its intended purpose.

    Answer

    prediction

  9. 9
    The logistic loss function is derived from
    _____
    estimation.
    Hint

    It is a common statistical method for estimating parameters.

    Answer

    maximum likelihood

  10. 10
    In gradient descent, parameters are updated by subtracting the learning rate times the
    _____
    .
    Hint

    It indicates the direction of steepest ascent.

    Answer

    derivative

  11. 11
    A neuron consists of a linear part and an
    _____
    part.
    Hint

    This part introduces non-linearity.

    Answer

    activation

  12. 12
    Model equals architecture plus
    _____
    .
    Hint

    These are the learned values that define the model's behavior.

    Answer

    parameters

  13. 13
    To classify three types of animals, we use three
    _____
    in the output layer.
    Hint

    Each output unit corresponds to one class.

    Answer

    neurons

  14. 14
    Square brackets in the notation indicate the
    _____
    number.
    Hint

    It identifies which layer a variable belongs to.

    Answer

    layer

  15. 15
    If each neuron has a weight vector of size nnn, a three-neuron output layer has
    _____
    weights.
    Hint

    Multiply the number of neurons by the input size.

    Answer

    3n3n3n

  16. 16
    In a multi-neuron output layer with sigmoid, the neurons are trained
    _____
    from each other.
    Hint

    They do not share information during training.

    Answer

    independently

  17. 17
    Softmax outputs a probability distribution over classes, so they sum to
    _____
    .
    Hint

    Probabilities must satisfy this property.

    Answer

    1

  18. 18
    The loss function for softmax regression is called
    _____
    loss.
    Hint

    It measures the difference between two probability distributions.

    Answer

    cross-entropy

  19. 19
    The function that is zero for negative inputs and linear for positive inputs is called
    _____
    .
    Hint

    It stands for Rectified Linear Unit.

    Answer

    ReLU

  20. 20
    For regression, the loss function often used is the
    _____
    loss.
    Hint

    It is based on the squared difference.

    Answer

    L2

  21. 21
    Layers in a neural network consist of neurons that are
    _____
    connected to each other.
    Hint

    They do not have connections within the same layer.

    Answer

    not

  22. 22
    A layer that is neither the input nor the output layer is called a
    _____
    layer.
    Hint

    It is 'hidden' from direct input and output.

    Answer

    hidden

  23. 23
    In a fully connected layer, every neuron in one layer is connected to every neuron in the
    _____
    layer.
    Hint

    Connections go forward to the subsequent layer.

    Answer

    next

  24. 24
    For a network with input size nnn, hidden layer size 3, second hidden size 2, and output size 1, the total number of biases is
    _____
    .
    Hint

    Count the bias for each layer.

    Answer

    6

  25. 25
    The forward propagation for layer lll computes $Z^{[l]} = W^{[l]} A^{[l-1]} +
    _____
    $.
    Hint

    It is the bias vector for that layer.

    Answer

    b[l]b^{[l]}b[l]

  26. 26
    If there are 3 neurons in the first hidden layer, Z[1]Z^{[1]}Z[1] has shape
    _____
    .
    Hint

    It is a column vector with one element per neuron.

    Answer

    3 by 1

  27. 27
    When processing mmm examples in a batch, the input XXX becomes a matrix of size nnn by
    _____
    .
    Hint

    Each column is one example.

    Answer

    mmm

  28. 28
    To add a bias vector to a matrix with mmm columns, we use a technique called
    _____
    .
    Hint

    It replicates the vector to match the matrix size automatically.

    Answer

    broadcasting

  29. 29
    The cost function JJJ is the average of the
    _____
    functions over all training examples.
    Hint

    It aggregates individual errors.

    Answer

    loss

  30. 30
    Backpropagation computes derivatives using the
    _____
    rule.
    Hint

    It allows decomposing complex derivatives.

    Answer

    chain

  31. 31
    In backpropagation, we start computing derivatives from the layer closest to the
    _____
    .
    Hint

    The layer that directly affects the loss.

    Answer

    output

  32. 32
    The derivative of z[3]z^{[3]}z[3] with respect to w[3]w^{[3]}w[3] is the transpose of
    _____
    .
    Hint

    It involves the activation of the previous layer.

    Answer

    a[2]a^{[2]}a[2]

  33. 33
    The first layers of a neural network trained on images often learn to detect
    _____
    .
    Hint

    Simple visual features like lines and boundaries.

    Answer

    edges

  34. 34
    Training a neural network directly from input to output without hand-engineered features is called
    _____
    learning.
    Hint

    The model learns all processing stages itself.

    Answer

    end-to-end

1 of 34
Question 1 of 34

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent