1. Home
  2. Explore
  3. Computer Science
  4. Convolutional Neural Networks

Study methods

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

Convolutional Neural Networks

  • 64Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Image Classification Basics

What is a CNN, and what kind of task was it designed especially to address?

64 questions

  1. 1

    What is a CNN, and what kind of task was it designed especially to address?

    1. A

      A rule for converting labels into probability vectors

    2. B

      A classification method used only for audio signals

    3. C

      A procedure that rescales every network parameter

    4. D

      A network architecture designed especially for image-related tasks

    Correct answer
    D

    A network architecture designed especially for image-related tasks

    Explanation

    A convolutional neural network (CNN) is a network architecture designed especially for image-related tasks, such as image classification.

  2. 2

    What is the central goal of the image-classification example?

    1. A

      It reconstructs the image's RGB values exactly

    2. B

      It predicts which class or object is depicted

    3. C

      It predicts the image's original file size

    4. D

      It determines how many pixels the image contains

    Correct answer
    B

    It predicts which class or object is depicted

    Explanation

    In image classification, the model receives an image and predicts which object or class it contains.

  3. 3

    If an image-recognition model requires inputs of a fixed size, how are differently sized images commonly handled?

    1. A

      Allowing every image to have an arbitrary size without adjustment

    2. B

      Converting every image into a one-dimensional label

    3. C

      Rescaling images to a common size before processing

    4. D

      Padding every image until it has the same number of channels

    Correct answer
    C

    Rescaling images to a common size before processing

    Explanation

    The discussion assumes a fixed input size. A common practical approach is to rescale images to a common size before feeding them to the recognition system.

  4. 4

    How does a one-hot target vector represent an image that belongs to the cat class?

    1. A

      The correct class has value 111 and all other classes have value 000

    2. B

      Only the first class has value 111, regardless of the image

    3. C

      The correct class has value 000 and all other classes have value 111

    4. D

      Every class has the same probability value

    Correct answer
    A

    The correct class has value 111 and all other classes have value 000

    Explanation

    A one-hot target has one entry equal to 111 for the correct class and entries equal to 000 for the other classes.

  5. 5

    What does the length of a one-hot class vector indicate?

    1. A

      It determines the stride used to scan the image

    2. B

      It determines the number of pixels in each input image

    3. C

      It determines how many distinct classes the model can represent

    4. D

      It determines the number of filters in every layer

    Correct answer
    C

    It determines how many distinct classes the model can represent

    Explanation

    The number of dimensions in a one-hot class vector corresponds to the number of classes the model can represent.

  6. 6

    In the classification setup, what is the desired relationship between the softmax output and the target?

    1. A

      The output should avoid assigning any probability to the correct class

    2. B

      The output vector's length should be smaller than the target's length

    3. C

      The cross-entropy between the prediction and target should be minimized

    4. D

      The input image should be converted into a one-hot vector

    Correct answer
    C

    The cross-entropy between the prediction and target should be minimized

    Explanation

    After the model's output passes through softmax, it is compared with the target using cross-entropy; the training objective favors a smaller cross-entropy.

  7. 7

    Why might an image classifier use a one-hot label vector with thousands of dimensions?

    1. A

      A large label vector guarantees that classification has no errors

    2. B

      A large label vector means the input image has more pixels

    3. C

      A large label vector specifies the image's width and height

    4. D

      A large label vector allows the model to represent more object categories

    Correct answer
    D

    A large label vector allows the model to represent more object categories

    Explanation

    Image classifiers may need to distinguish thousands or even tens of thousands of object categories, so their output label vectors can have correspondingly many dimensions.

  8. 8

    What do the three channels of a typical color image represent?

    1. A

      They represent the three spatial coordinates of each pixel

    2. B

      They represent red, green, and blue color information

    3. C

      They represent three successive classification labels

    4. D

      They represent image width, image height, and brightness

    Correct answer
    B

    They represent red, green, and blue color information

    Explanation

    For a color image, the three channels encode red, green, and blue information at each pixel.

  9. 9

    How is a color image represented for a computer in the discussed setup?

    1. A

      A tensor whose dimensions represent color, class, and prediction

    2. B

      A vector whose entries represent only the image's class labels

    3. C

      A tensor whose dimensions represent width, height, and channels

    4. D

      A matrix whose rows represent separate training examples

    Correct answer
    C

    A tensor whose dimensions represent width, height, and channels

    Explanation

    A digital image can be represented as a three-dimensional tensor with dimensions for width, height, and channel count.

  10. 10

    What does it mean to flatten an image tensor before sending it to a fully connected network?

    1. A

      Turning every pixel into a separate class label

    2. B

      Selecting only the red-channel values and discarding the rest

    3. C

      Averaging all pixel values into one number

    4. D

      Arranging all tensor values in a single vector

    Correct answer
    D

    Arranging all tensor values in a single vector

    Explanation

    Flattening rearranges all the tensor's values into a single vector, which can then be supplied to a network that expects vector inputs.

  11. 11

    What does an individual entry in the flattened image vector represent?

    1. A

      Each value represents one pixel location's intensity in one color channel

    2. B

      Each value identifies the predicted object class

    3. C

      Each value records the number of filters in a layer

    4. D

      Each value specifies a neuron's activation function

    Correct answer
    A

    Each value represents one pixel location's intensity in one color channel

    Explanation

    Each flattened input value corresponds to the intensity of one color at one pixel location.

  12. 12

    How many scalar input values are in a 100imes100100 imes 100100imes100 RGB image?

    1. A

      100imes3100 imes 3100imes3 values

    2. B

      100imes100100 imes 100100imes100 values

    3. C

      100+100+3100 + 100 + 3100+100+3 values

    4. D

      100imes100imes3100 imes 100 imes 3100imes100imes3 values

    Correct answer
    D

    100imes100imes3100 imes 100 imes 3100imes100imes3 values

    Explanation

    An image of size 100imes100100 imes 100100imes100 with three color channels has 100imes100imes3100 imes 100 imes 3100imes100imes3 scalar values when flattened.

  13. 13

    How many first-layer weights are needed for a fully connected layer with 100010001000 neurons receiving a 100imes100100 imes 100100imes100 RGB image?

    1. A

      1000imes100imes100imes31000 imes 100 imes 100 imes 31000imes100imes100imes3 weights

    2. B

      1000imes31000 imes 31000imes3 weights

    3. C

      1000+100+100+31000 + 100 + 100 + 31000+100+100+3 weights

    4. D

      100imes100imes3100 imes 100 imes 3100imes100imes3 weights

    Correct answer
    A

    1000imes100imes100imes31000 imes 100 imes 100 imes 31000imes100imes100imes3 weights

    Explanation

    With 100010001000 first-layer neurons and 100imes100imes3100 imes 100 imes 3100imes100imes3 input values, each neuron has a weight for every input value, giving 1000imes100imes100imes31000 imes 100 imes 100 imes 31000imes100imes100imes3 weights.

  14. 14

    What is a key trade-off of using many parameters in a fully connected image model?

    1. A

      It eliminates the need for training data

    2. B

      It guarantees that the model generalizes to unseen images

    3. C

      It can increase flexibility while also raising overfitting risk

    4. D

      It always reduces model flexibility and prevents underfitting

    Correct answer
    C

    It can increase flexibility while also raising overfitting risk

    Explanation

    Increasing the number of parameters can increase model flexibility, but it can also increase the risk of overfitting.

  15. 15

    What does a neuron's receptive field specify in a CNN?

    1. A

      It specifies the local image region a neuron uses as input

    2. B

      It specifies the final number of classes in the model

    3. C

      It converts the image into a one-hot class vector

    4. D

      It forces every neuron to inspect every pixel in the image

    Correct answer
    A

    It specifies the local image region a neuron uses as input

    Explanation

    A receptive field restricts a neuron to information from a local region, based on the idea that a local pattern can often be detected without examining the whole image.

  16. 16

    Why can a local receptive field be suitable for detecting features such as an eye or beak?

    1. A

      Local patterns require a separate class label for every pixel

    2. B

      A neuron must inspect every color channel across the whole image

    3. C

      Every feature can be identified only from the complete image

    4. D

      A local feature can often be detected from a small image region

    Correct answer
    D

    A local feature can often be detected from a small image region

    Explanation

    A neuron detecting a local feature such as an eye or beak may need only a small patch of the image, rather than the entire image.

  17. 17

    Which statement best describes the possible shape of a receptive field?

    1. A

      It must always be a square covering all image channels

    2. B

      It must have the same size as the complete image

    3. C

      It may be rectangular or have an unusual shape if the task warrants it

    4. D

      It must always consist of disconnected image corners

    Correct answer
    C

    It may be rectangular or have an unusual shape if the task warrants it

    Explanation

    A receptive field can be specified as a connected local region, but the design is not mathematically required to be square or connected; unusual shapes can be used if appropriate to the task.

  18. 18

    How can receptive fields be designed with respect to image channels?

    1. A

      A receptive field can include all channels or selected channels

    2. B

      Channel selection is determined only by the softmax output

    3. C

      Every receptive field must use only the red channel

    4. D

      A receptive field cannot include channel information

    Correct answer
    A

    A receptive field can include all channels or selected channels

    Explanation

    A receptive field may extend across several channels, while a task-specific design could restrict some neurons to only selected channels.

  19. 19

    Why can overlapping receptive fields be useful?

    1. A

      They may overlap only when they belong to different images

    2. B

      They may overlap so boundary patterns are less likely to be missed

    3. C

      They must be disjoint so each pixel is processed only once

    4. D

      They must all cover exactly the same image coordinates

    Correct answer
    B

    They may overlap so boundary patterns are less likely to be missed

    Explanation

    Receptive fields may overlap; overlap helps ensure that patterns near boundaries between neighboring regions are still covered.

  20. 20

    What is one reason to assign multiple neurons to the same receptive field?

    1. A

      It allows only one feature to be detected in the image

    2. B

      It ensures all neurons in that region have identical outputs

    3. C

      It allows multiple neurons to detect different patterns in the same region

    4. D

      It prevents any neuron from detecting a local pattern

    Correct answer
    C

    It allows multiple neurons to detect different patterns in the same region

    Explanation

    More than one neuron can be assigned to the same receptive field so that different neurons can detect different patterns in that region.

  21. 21

    What does kernel size usually refer to in the described image-CNN setup?

    1. A

      The receptive field's height and width, when it spans all channels

    2. B

      The number of neurons assigned to the whole network

    3. C

      The number of image classes and color channels combined

    4. D

      The distance between adjacent receptive fields

    Correct answer
    A

    The receptive field's height and width, when it spans all channels

    Explanation

    A kernel's height and width are its kernel size. In the common image-CNN setup, the kernel spans all input channels, so its depth need not be separately specified.

  22. 22

    What is a typical reason for choosing a small stride such as 111 or 222?

    1. A

      It measures the number of weights shared by two neurons

    2. B

      It is usually set larger than the kernel so regions do not overlap

    3. C

      It is fixed at the number of image channels

    4. D

      It is often set to 111 or 222 to maintain overlap

    Correct answer
    D

    It is often set to 111 or 222 to maintain overlap

    Explanation

    A stride of 111 or 222 is commonly used so neighboring receptive fields overlap; a larger stride could leave coverage gaps or reduce overlap.

  23. 23

    Why is padding used when a receptive field would extend beyond an image's boundary?

    1. A

      Sharing the image's edge weights with its center weights

    2. B

      Removing pixels near the boundary to avoid partial regions

    3. C

      Rescaling the image so every receptive field fits inside it

    4. D

      Supplying values outside the image boundary so edge regions can be processed

    Correct answer
    D

    Supplying values outside the image boundary so edge regions can be processed

    Explanation

    Padding supplies values outside the original image boundary so that receptive fields can still be placed near edges and patterns there can be detected.

  24. 24

    What does zero padding do?

    1. A

      It inserts the image's average color into every pixel

    2. B

      It treats out-of-image positions as having value 000

    3. C

      It rescales all image values to have mean zero

    4. D

      It repeats the nearest class label outside the image

    Correct answer
    B

    It treats out-of-image positions as having value 000

    Explanation

    Zero padding assigns a value of 000 to positions outside the image; other padding schemes may use values such as a mean or nearby edge values.

  25. 25

    What is parameter sharing in a convolutional network?

    1. A

      It replaces the image values with shared class labels

    2. B

      It reuses the same weights for neurons that inspect different locations

    3. C

      It gives every receptive field a unique set of weights

    4. D

      It makes every neuron inspect the entire image

    Correct answer
    B

    It reuses the same weights for neurons that inspect different locations

    Explanation

    Parameter sharing lets neurons that inspect different image locations use the same weights, reflecting that the same pattern may occur in multiple locations.

  26. 26

    If two neurons share weights but inspect different image regions, why can their outputs differ?

    1. A

      Their outputs must be identical because their parameters match

    2. B

      Their outputs may differ because their inputs differ

    3. C

      They cannot produce outputs unless their receptive fields overlap

    4. D

      Their outputs differ only if they use different activation functions

    Correct answer
    B

    Their outputs may differ because their inputs differ

    Explanation

    Neurons using the same weights can produce different outputs when their receptive fields contain different input values.

  27. 27

    Why is it generally unhelpful to duplicate neurons with the same receptive field and shared parameters?

    1. A

      They would produce the same output because both parameters and inputs match

    2. B

      They would have different outputs because sharing changes the input

    3. C

      They would use different weights automatically during activation

    4. D

      They would produce zero outputs because their receptive fields coincide

    Correct answer
    A

    They would produce the same output because both parameters and inputs match

    Explanation

    If neurons inspect exactly the same input region and use the same weights and bias, their computations and outputs are identical; sharing is useful across different locations instead.

  28. 28

    What assumption about image patterns motivates parameter sharing?

    1. A

      It removes the need for neurons to receive image inputs

    2. B

      It assumes every image location has a different class

    3. C

      It assumes patterns occur only at the image center

    4. D

      It lets the same pattern detector operate at multiple locations

    Correct answer
    D

    It lets the same pattern detector operate at multiple locations

    Explanation

    Parameter sharing reflects the assumption that the same kind of pattern can be useful wherever it appears in the image, reducing redundant parameters.

  29. 29

    How are parameters commonly shared across receptive fields in an image CNN?

    1. A

      Each location has a distinct parameter set for every neuron

    2. B

      Only neurons in the final softmax layer share parameters

    3. C

      All neurons at every location share one single scalar weight

    4. D

      Corresponding neurons at different locations share the same filter parameters

    Correct answer
    D

    Corresponding neurons at different locations share the same filter parameters

    Explanation

    In a common arrangement, each receptive-field location has a group of neurons, and corresponding neurons at different locations share weights.

  30. 30

    What is the shared set of weights across image locations commonly called?

    1. A

      A filter

    2. B

      A class vector

    3. C

      A padding value

    4. D

      A stride

    Correct answer
    A

    A filter

    Explanation

    The shared weight set used by corresponding neurons at different locations is called a filter.

  31. 31

    How does imposing receptive fields restrict a network compared with a fully connected layer?

    1. A

      A fully connected layer cannot assign zero weights

    2. B

      A receptive-field constraint removes the choice to connect a neuron to the whole image

    3. C

      A receptive-field constraint gives every neuron more input connections

    4. D

      A fully connected layer has no flexibility to choose its inputs

    Correct answer
    B

    A receptive-field constraint removes the choice to connect a neuron to the whole image

    Explanation

    A fully connected layer can in principle learn to ignore inputs by assigning weights of zero, whereas a receptive-field constraint restricts which inputs a neuron may use.

  32. 32

    What two design ideas define a convolutional layer in the discussed account?

    1. A

      A layer that rescales images and assigns one-hot labels

    2. B

      A layer that combines local receptive fields with shared parameters

    3. C

      A layer that flattens an image without learning parameters

    4. D

      A layer that applies softmax separately at every pixel

    Correct answer
    B

    A layer that combines local receptive fields with shared parameters

    Explanation

    A convolutional layer combines local receptive fields with parameter sharing, thereby imposing structural constraints suited to image patterns.

  33. 33

    Why does a CNN's greater inductive bias not necessarily make it worse for image recognition?

    1. A

      It can perform well only if it has more parameters than a fully connected layer

    2. B

      It can have greater inductive bias while still performing well on image tasks

    3. C

      It must perform worse because every increase in bias lowers accuracy

    4. D

      It has no assumptions about the structure of images

    Correct answer
    B

    It can have greater inductive bias while still performing well on image tasks

    Explanation

    Convolutional layers constrain the model in ways motivated by image structure. This raises inductive bias, but the constraint can help on images rather than necessarily harming performance.

  34. 34

    What is a filter in the filter-based description of a convolutional layer?

    1. A

      A parameter tensor used to detect a local pattern

    2. B

      A feature map containing the final classification probabilities

    3. C

      A fixed padding rule that removes edge pixels

    4. D

      A one-dimensional class label that stores the predicted object

    Correct answer
    A

    A parameter tensor used to detect a local pattern

    Explanation

    A filter is a tensor of learned parameters that matches a local patch; for a color image, its depth spans the input channels.

  35. 35

    How does a filter compute a response at one image location?

    1. A

      The filter is added to the image without using its values

    2. B

      The filter and image patch are combined by an inner product

    3. C

      The filter replaces the image patch with its largest value

    4. D

      The filter is compared with the whole image using cross-entropy

    Correct answer
    B

    The filter and image patch are combined by an inner product

    Explanation

    At a location, the filter's values are multiplied elementwise with the corresponding image patch values and summed, which is an inner product.

  36. 36

    How does a convolutional filter generate responses across an image?

    1. A

      The filter is converted into an output class before scanning

    2. B

      The filter is applied only at the image center

    3. C

      The filter is moved across image locations and produces a response at each one

    4. D

      The filter is learned separately for each pixel and never moved

    Correct answer
    C

    The filter is moved across image locations and produces a response at each one

    Explanation

    The filter is shifted across the image, and its response is computed at each location, producing a spatial array of values.

  37. 37

    What is a feature map?

    1. A

      A set of weights used only by a fully connected layer

    2. B

      A list of class labels supplied to the input layer

    3. C

      A tensor of padding values outside the image

    4. D

      A spatial collection of responses produced by one filter

    Correct answer
    D

    A spatial collection of responses produced by one filter

    Explanation

    Each filter produces its own grid or group of responses; that response grid is called a feature map.

  38. 38

    If a convolutional layer uses 646464 filters, how many output channels does it produce in the described setup?

    1. A

      It has 111 output channel because the input is one image

    2. B

      It has 333 output channels because the input is RGB

    3. C

      It has 646464 output channels, one per filter

    4. D

      It has 100100100 output channels because the image is 100100100 pixels wide

    Correct answer
    C

    It has 646464 output channels, one per filter

    Explanation

    With 646464 filters, the output has 646464 feature maps or channels, one corresponding to each filter.

  39. 39

    How is a convolutional filter's depth determined?

    1. A

      A filter's depth is the stride multiplied by the kernel width

    2. B

      A filter's depth matches the number of output classes

    3. C

      A filter's depth matches the number of input channels

    4. D

      A filter's depth is always 333, regardless of its input

    Correct answer
    C

    A filter's depth matches the number of input channels

    Explanation

    For a grayscale input with one channel, the filter depth is one; for an input with 646464 channels, the next layer's filters span depth 646464.

  40. 40

    Which statement about filter parameters and bias is accurate?

    1. A

      Filter values are fixed image pixels and cannot be learned

    2. B

      Only the filter's stride is learned from the data

    3. C

      Filter values are learned parameters, and filters can also have biases

    4. D

      Filters have no parameters once a feature map is produced

    Correct answer
    C

    Filter values are learned parameters, and filters can also have biases

    Explanation

    The values in a filter are learned model parameters. A bias may also be included, even if an illustration or explanation omits it.

  41. 41

    How does scanning a filter across an image relate to parameter sharing?

    1. A

      It converts all feature maps into one class label

    2. B

      It applies shared parameters at multiple image locations

    3. C

      It removes the channel dimension before processing

    4. D

      It gives each image location a separate, unrelated filter

    Correct answer
    B

    It applies shared parameters at multiple image locations

    Explanation

    A filter swept across an image applies the same parameters at different locations; this operation embodies parameter sharing and is the operation called convolution in this explanation.

  42. 42

    Why can a deep CNN detect larger patterns even when its filters are small?

    1. A

      They cannot represent larger patterns unless the filter size increases

    2. B

      Their receptive fields remain limited to the first layer's kernel

    3. C

      Their effective receptive fields grow as layers are stacked

    4. D

      They see larger patterns only when pooling is used

    Correct answer
    C

    Their effective receptive fields grow as layers are stacked

    Explanation

    Although each filter in a layer may have a small spatial size such as 3imes33 imes 33imes3, stacking layers expands the input-image region that can influence later-layer activations.

  43. 43

    What distinguishes pooling from a parameter-learning layer in the discussed setup?

    1. A

      It applies a fixed operation without learning parameters

    2. B

      It learns only the output classes and no image features

    3. C

      It shares its weights with the softmax layer

    4. D

      It learns a new filter for each image region

    Correct answer
    A

    It applies a fixed operation without learning parameters

    Explanation

    Pooling has no learned weights in the described setup; it applies a fixed operation to groups of values, so it is more like an operator or activation function than a learned layer.

  44. 44

    How does max pooling operate on a group of feature-map values?

    1. A

      It outputs the smallest value from each entire channel

    2. B

      It outputs the average of all values in the image

    3. C

      It outputs the largest value in each local group

    4. D

      It selects one value randomly from each image

    Correct answer
    C

    It outputs the largest value in each local group

    Explanation

    Max pooling groups values, such as in 2imes22 imes 22imes2 regions, and outputs the largest value from each group.

  45. 45

    Which statement about pooling operations is correct?

    1. A

      Pooling must reduce the number of channels to one

    2. B

      Pooling can only use a 2imes22 imes 22imes2 group

    3. C

      Other rules, such as minimum or average pooling, are possible

    4. D

      Every pooling method must select the maximum value

    Correct answer
    C

    Other rules, such as minimum or average pooling, are possible

    Explanation

    Max pooling is one choice among possible pooling rules; alternatives mentioned include selecting minima, averages, or geometric means.

  46. 46

    What does pooling commonly do to a multi-channel feature map?

    1. A

      It converts every feature map directly into a class label

    2. B

      It reduces spatial dimensions while keeping the channel count unchanged

    3. C

      It increases spatial dimensions and removes all channels

    4. D

      It preserves spatial dimensions but doubles the channel count

    Correct answer
    B

    It reduces spatial dimensions while keeping the channel count unchanged

    Explanation

    Pooling typically reduces spatial dimensions while preserving the number of channels; for example, 4imes44 imes 44imes4 maps pooled over 2imes22 imes 22imes2 groups become 2imes22 imes 22imes2 maps.

  47. 47

    What is a trade-off associated with pooling?

    1. A

      It reduces computation but may harm performance on fine details

    2. B

      It increases computation while preserving every spatial detail

    3. C

      It removes the need for convolutional filters

    4. D

      It guarantees better performance on every image task

    Correct answer
    A

    It reduces computation but may harm performance on fine details

    Explanation

    Pooling can reduce computation by subsampling, but it may discard fine details that matter for detecting subtle features.

  48. 48

    What does it mean for an image network to be fully convolutional in the discussed sense?

    1. A

      A full-convolution network can use convolutions without pooling

    2. B

      Pooling must always follow every convolution

    3. C

      A full-convolution network contains only fully connected layers

    4. D

      Pooling is required whenever a softmax is used

    Correct answer
    A

    A full-convolution network can use convolutions without pooling

    Explanation

    If computational resources are sufficient, a network may omit pooling and use convolutional layers throughout; this is a full-convolution design.

  49. 49

    What is the role of flattening near the end of a conventional image-classification network?

    1. A

      It turns feature-map values into a vector for subsequent fully connected processing

    2. B

      It changes every feature-map value to its channel average

    3. C

      It converts a feature map into a receptive field without changing its shape

    4. D

      It turns the class prediction back into the original image

    Correct answer
    A

    It turns feature-map values into a vector for subsequent fully connected processing

    Explanation

    After convolution and optional pooling, flattening turns the spatially arranged values into a vector that can be fed to fully connected layers and ultimately a softmax classifier.

  50. 50

    Which sequence best describes a conventional image-classification network in the content?

    1. A

      Convolution, optional pooling, flattening, and classification layers

    2. B

      One-hot labels, padding, filters, and pooling only

    3. C

      Fully connected layers, then image resizing, then convolution

    4. D

      Softmax, flattening, and then the raw image input

    Correct answer
    A

    Convolution, optional pooling, flattening, and classification layers

    Explanation

    A conventional image-classification pipeline may use convolution, pooling, flattening, fully connected layers, and a final softmax output.

  51. 51

    How can a Go board be represented as a network input in the simple encoding described?

    1. A

      The board is represented only by the current player's color

    2. B

      The board can be encoded as a vector describing its 19imes1919 imes 1919imes19 positions

    3. C

      The board must be flattened into a vector of image class labels

    4. D

      The board is represented as a one-hot vector with one entry per filter

    Correct answer
    B

    The board can be encoded as a vector describing its 19imes1919 imes 1919imes19 positions

    Explanation

    A Go board can be encoded using a value for each of its 19imes1919 imes 1919imes19 positions, then treated as the input to a classifier predicting a move.

  52. 52

    Which is the example encoding for a Go board's black, white, and empty positions?

    1. A

      Black is 111, white is −1-1−1, and empty is 000

    2. B

      Black is −1-1−1, white is 111, and empty is 111

    3. C

      Black is 000, white is 111, and empty is −1-1−1

    4. D

      Black is 111, white is 000, and empty is −1-1−1

    Correct answer
    A

    Black is 111, white is −1-1−1, and empty is 000

    Explanation

    One possible encoding assigns 111 to a black stone, −1-1−1 to a white stone, and 000 to an empty position; other encodings are possible.

  53. 53

    How is choosing the next Go move formulated as a classification task?

    1. A

      It predicts the number of black stones after the game ends

    2. B

      It predicts a next-move location among the board's possible positions

    3. C

      It predicts whether the board image is black or white

    4. D

      It predicts one of the 484848 channels at each board position

    Correct answer
    B

    It predicts a next-move location among the board's possible positions

    Explanation

    The move prediction can be framed as choosing one of the 19imes1919 imes 1919imes19 board positions, making it a classification problem with that many possible classes.

  54. 54

    Why can a Go board be represented in a way that resembles an image?

    1. A

      A Go board is equivalent to an RGB image with exactly three channels

    2. B

      Go has no spatial structure, so it cannot be represented with channels

    3. C

      Every board position needs only one universal class label

    4. D

      A board can be treated as a grid whose positions have feature channels

    Correct answer
    D

    A board can be treated as a grid whose positions have feature channels

    Explanation

    A Go board can be treated as a spatial grid like an image, with each position represented using multiple channels that describe local board properties.

  55. 55

    How many channels per board position did the described AlphaGo input representation use?

    1. A

      It used 192192192 channels for each board position

    2. B

      It used one channel for every possible next move

    3. C

      It used 333 channels to represent red, green, and blue stones

    4. D

      It used 484848 channels to describe each board position

    Correct answer
    D

    It used 484848 channels to describe each board position

    Explanation

    The described AlphaGo representation used 484848 values or channels for each board position, encoding features of the local and board context.

  56. 56

    Which shared properties of Go and images help motivate using CNNs for Go?

    1. A

      Local patterns can matter, and the same pattern can occur at different locations

    2. B

      Go has no local patterns, and every move depends only on board size

    3. C

      Go positions can be subsampled without changing the game state

    4. D

      Go patterns occur only in fixed locations on the board

    Correct answer
    A

    Local patterns can matter, and the same pattern can occur at different locations

    Explanation

    Local Go patterns such as a stone being surrounded can be understood from a limited neighborhood, and similar patterns can arise at different board locations. These properties motivate convolutional processing.

  57. 57

    Why is pooling not automatically appropriate for a Go-playing network?

    1. A

      A Go board has no neighboring positions for pooling to combine

    2. B

      Pooling prevents filters from using any board channels

    3. C

      Removing board rows or columns changes the game position and can lose important information

    4. D

      Pooling makes the number of Go classes too large

    Correct answer
    C

    Removing board rows or columns changes the game position and can lose important information

    Explanation

    Subsampling can remove meaningful board positions, altering the game state, so the usual image-based justification for pooling does not necessarily apply to Go.

  58. 58

    Which description matches the broad architecture reported for the discussed AlphaGo network?

    1. A

      It used 3imes33 imes 33imes3 filters throughout and no padding

    2. B

      It used a fully connected network with no convolutional layers

    3. C

      It used zero padding, a 5imes55 imes 55imes5 first layer, then 3imes33 imes 33imes3 layers, and no pooling

    4. D

      It used pooling after every layer and only one filter

    Correct answer
    C

    It used zero padding, a 5imes55 imes 55imes5 first layer, then 3imes33 imes 33imes3 layers, and no pooling

    Explanation

    The described AlphaGo architecture used zero padding, a first 5imes55 imes 55imes5 convolution with 192192192 filters and stride 111, followed by layers using 3imes33 imes 33imes3 filters, and it did not use pooling.

  59. 59

    What caution applies when using CNNs for speech or text rather than images?

    1. A

      CNNs cannot be applied to speech or text under any circumstances

    2. B

      Image-CNN designs can be copied directly because all data have identical structure

    3. C

      Speech and text models should use pooling because images do

    4. D

      CNN designs for speech and text should account for the properties of those domains

    Correct answer
    D

    CNN designs for speech and text should account for the properties of those domains

    Explanation

    The usefulness of CNNs outside images depends on task-specific structure. Receptive fields and parameter sharing for language or speech should reflect those domains rather than simply copying image-CNN choices.

  60. 60

    What limitation can ordinary CNNs have with scaled or rotated objects?

    1. A

      They may fail when objects are scaled or rotated relative to training examples

    2. B

      They handle scaling and rotation whenever the object class is one-hot encoded

    3. C

      They are automatically invariant to all rotations but not scaling

    4. D

      They are invariant to transformations as long as the image is RGB

    Correct answer
    A

    They may fail when objects are scaled or rotated relative to training examples

    Explanation

    Ordinary CNNs are not inherently robust to scaling or rotation; a transformed object may produce a substantially different input pattern to the model.

  61. 61

    How can data augmentation help address sensitivity to scale and rotation?

    1. A

      It makes a CNN's filters automatically invariant without additional data

    2. B

      It adds transformed training examples such as enlarged, cropped, or rotated images

    3. C

      It replaces training labels with feature maps

    4. D

      It removes all training images that contain rotated objects

    Correct answer
    B

    It adds transformed training examples such as enlarged, cropped, or rotated images

    Explanation

    Data augmentation can expose the model to transformed training examples, such as cropped or enlarged images and rotated objects, helping it learn to handle those variations.

  62. 62

    Why might a CNN trained on one object scale struggle with a larger version of that object?

    1. A

      Transformations can change the pixel pattern presented to the network

    2. B

      CNNs retain the same input vector whenever an image is transformed

    3. C

      Softmax automatically restores the original object's orientation

    4. D

      CNNs use object shape directly and ignore pixel values

    Correct answer
    A

    Transformations can change the pixel pattern presented to the network

    Explanation

    A larger object or a rotated object may change the pixel values and their arrangement, so the network may not treat it as the same pattern unless it has learned from such variations.

  63. 63

    Which named architecture was mentioned as a possible approach to transformation-related challenges?

    1. A

      A layer that performs one-hot encoding for object labels

    2. B

      A filter bank that increases RGB channels to three

    3. C

      A pooling layer that selects the geometric mean

    4. D

      A spatial transformer layer

    Correct answer
    D

    A spatial transformer layer

    Explanation

    A spatial transformer layer is identified as an architecture intended to address transformation-related issues, though its details are outside the discussed material.

  64. 64

    What general principle should guide the choice of a CNN architecture?

    1. A

      CNNs are suitable whenever input data can be flattened

    2. B

      CNN design should reflect the structure and properties of the task

    3. C

      CNNs should be selected solely by counting output classes

    4. D

      CNNs always outperform fully connected networks on every task

    Correct answer
    B

    CNN design should reflect the structure and properties of the task

    Explanation

    CNN performance depends on whether its assumptions—such as useful local patterns and repeated patterns across positions—fit the task. The architecture should be chosen with the task's structure in mind.

Question 1 of 64
Question 1 of 64

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent