CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
amanchadha

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: amanchadha/coursera-deep-learning-specialization
Path: blob/master/C4 - Convolutional Neural Networks/Week 1/Week 1 Quiz - The basics of ConvNets.md
Views: 4802

Week 1 quiz - The basics of ConvNets

  1. What do you think applying this filter to a grayscale image will do?

    • Detect horizontal edges

    • Detect vertical edges

    • Detect 45 degree edges

    • Detect image contrast

  2. Suppose your input is a 300 by 300 color (RGB) image, and you are not using a convolutional network. If the first hidden layer has 100 neurons, each one fully connected to the input, how many parameters does this hidden layer have (including the bias parameters)?

    • 9,000,001

    • 9,000,100

    • 27,000,001

    • 27,000,100

  3. Suppose your input is a 300 by 300 color (RGB) image, and you use a convolutional layer with 100 filters that are each 5x5. How many parameters does this hidden layer have (including the bias parameters)?

    • 2501

    • 2600

    • 7500

    • 7600

  4. You have an input volume that is 63x63x16, and convolve it with 32 filters that are each 7x7, using a stride of 2 and no padding. What is the output volume?

    16x16x32

    29x29x16

    29x29x32

    16x16x16

  5. You have an input volume that is 15x15x8, and pad it using “pad=2.” What is the dimension of the resulting volume (after padding)?

    19x19x12

    17x17x10

    19x19x8

    17x17x8

  6. You have an input volume that is 63x63x16, and convolve it with 32 filters that are each 7x7, and stride of 1. You want to use a “same” convolution. What is the padding?

    1

    2

    3

    7

  7. You have an input volume that is 32x32x16, and apply max pooling with a stride of 2 and a filter size of 2. What is the output volume?

    15x15x16

    16x16x16

    32x32x8

    16x16x8

  8. Because pooling layers do not have parameters, they do not affect the backpropagation (derivatives) calculation.

    True

    False

  9. In lecture we talked about “parameter sharing” as a benefit of using convolutional networks. Which of the following statements about parameter sharing in ConvNets are true? (Check all that apply.)

    It allows parameters learned for one task to be shared even for a different task (transfer learning).

    It reduces the total number of parameters, thus reducing overfitting.

    It allows gradient descent to set many of the parameters to zero, thus making the connections sparse.

    It allows a feature detector to be used in multiple locations throughout the whole input image/input volume.

  10. In lecture we talked about “sparsity of connections” as a benefit of using convolutional layers. What does this mean?

    Each filter is connected to every channel in the previous layer.

    Each activation in the next layer depends on only a small number of activations from the previous layer.

    Each layer in a convolutional network is connected only to two other layers

    Regularization causes gradient descent to set many of the parameters to zero.

  11. Suppose your input is a 256 by 256 grayscale image, and you use a convolutional layer with 128 filters that are each 3×3. How many parameters does this hidden layer have (including the bias parameters)?

    1280

  12. You have an input volume that is 127×127×16, and convolve it with 32 filters of 5×5, using a stride of 2 and no padding. What is the output volume?

    62 x 62 x 32

  13. You have an input volume that is 31x31x32, and pad it using “pad=1”. What is the dimension of the resulting volume (after padding)?

    33 x 33 x 32

  14. Which of the following are hyperparameters of the pooling layers?

    1. Stride 2. Whether it is max or average

19.Which of the following are the benefits of using convolutional layers?

> 1. Convolution layers are good 2. It reduces total number of parameters
  1. The following image depicts the result of a convolution at the right when using a stride of 1 and the filter is shown right next.On which pixels does the circled pixel of the activation at the right depend?

    > Depends on the green square