1. Home
  2. Explore
  3. Computer Science
  4. Neural Networks for Image Recognition

Study methods

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

Neural Networks for Image Recognition

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Classification Basics
  • spaceFlip card
  • KI knew it
  • DI didn't know it
  • ←Previous card
  • →Next card

What is the purpose of a decision boundary in classification?

Tap to flipClick to flipspace

A line or curve that separates different classes in a feature space, used to predict the class of new data points.

Or swipe the card

30 cards

  1. What is the purpose of a decision boundary in classification?

    A line or curve that separates different classes in a feature space, used to predict the class of new data points.

  2. What are the two inputs and two outputs in the fruit classification example?

    Inputs: spot size and spike length. Outputs: two nodes representing safe or poisonous (with highest value indicating prediction).

  3. What is the role of weights in a neural network?

    Weights determine the importance of each input to a neuron; the weighted sum is computed as input * weight for each connection.

  4. What is the purpose of bias in a neural network?

    Bias allows shifting the activation function input up or down, providing flexibility to fit the data (e.g., moving the decision boundary horizontally/vertically).

  5. What is a hidden layer in a neural network?

    An intermediate layer between input and output layers that can have any number of nodes, allowing the network to learn non-linear decision boundaries.

  6. What is an activation function?

    A function that computes the output (activation) of a neuron from its weighted input; examples include step, sigmoid, ReLU, tanh.

  7. What is the sigmoid activation function and its derivative?

    Sigmoid: σ(x)=11+e−x\sigma(x) = \frac{1}{1 + e^{-x}}σ(x)=1+e−x1​. Derivative: σ′(x)=σ(x)(1−σ(x))\sigma'(x) = \sigma(x)(1 - \sigma(x))σ′(x)=σ(x)(1−σ(x)).

  8. How is the cost function defined for a single training example?

    Cost for one example: sum over output nodes of (actual output - expected output)^2, also called squared error or mean squared error per example.

  9. What is gradient descent?

    An optimization algorithm that iteratively adjusts parameters (weights and biases) in the direction of steepest decrease of the cost function, using the gradient.

  10. What is the derivative of the cost with respect to a weight in the output layer?

    ∂C∂w=∂C∂a⋅∂a∂z⋅∂z∂w=2(a−y)⋅a(1−a)⋅aprev\frac{\partial C}{\partial w} = \frac{\partial C}{\partial a} \cdot \frac{\partial a}{\partial z} \cdot \frac{\partial z}{\partial w} = 2(a - y) \cdot a(1-a) \cdot a_{\text{prev}}∂w∂C​=∂a∂C​⋅∂z∂a​⋅∂w∂z​=2(a−y)⋅a(1−a)⋅aprev​ (using sigmoid and squared error).

  11. What is the backpropagation algorithm?

    An algorithm to efficiently compute gradients of the cost with respect to all weights and biases by propagating errors backward from output to input layers.

  12. How are gradients computed for weights in a hidden layer?

    By taking the weighted sum of node values from the next layer (using connection weights) and multiplying by the derivative of the activation function.

  13. What is mini-batch gradient descent?

    A variant where the gradient is computed on a small random subset (mini-batch) of training data per iteration, rather than the full dataset.

  14. What problem can occur with a too-high learning rate?

    The gradient descent may overshoot minima, causing divergence or oscillations, preventing convergence.

  15. What is a saddle point in gradient descent?

    A point where the gradient is zero but it is not a minimum (it's a plateau-like region), which can slow learning significantly.

  16. How is the derivative of the cost with respect to a bias computed?

    ∂C∂b=∂C∂a⋅∂a∂z⋅∂z∂b=∂C∂a⋅σ′(z)⋅1\frac{\partial C}{\partial b} = \frac{\partial C}{\partial a} \cdot \frac{\partial a}{\partial z} \cdot \frac{\partial z}{\partial b} = \frac{\partial C}{\partial a} \cdot \sigma'(z) \cdot 1∂b∂C​=∂a∂C​⋅∂z∂a​⋅∂b∂z​=∂a∂C​⋅σ′(z)⋅1.

  17. What is the input dimension for the handwritten digit dataset (MNIST)?

    784 inputs (28x28 pixels, each value from 0 to 1 representing grayscale).

  18. What is the output dimension for digit classification?

    10 outputs, one for each digit (0-9); the highest value indicates the predicted digit.

  19. What accuracy did the simple network achieve on MNIST with a hidden layer of 100 nodes?

    About 95% test accuracy initially; after tuning (learning rate, momentum) reached ~97%.

  20. What technique improved generalization when training on distorted digits?

    Data augmentation: rotating, scaling, shifting, and adding noise to training images, plus adding random noise to network inputs.

  21. What accuracy was achieved on the fashion MNIST dataset?

    About 89% test accuracy, which is better than the reported human performance of 83%.

  22. How many categories were used from the Quick, Draw! dataset?

    10 categories: helicopter, house plant, cat, cruise ship, windmill, popsicle, tractor, umbrella, bicycle, octopus.

  23. What accuracy did the network achieve on the Quick, Draw! doodle classification?

    About 87% accuracy on the test set.

  24. What was the input dimension for the color image classification task?

    3072 inputs (32x32 pixels x 3 color channels).

  25. What accuracy did the simple network achieve on the color image (CIFAR-10-like) dataset?

    About 53% accuracy, much lower than human performance, indicating the need for convolutional neural networks.

  26. What is momentum in gradient descent?

    An addition that accumulates past gradients to accelerate weight updates in consistent directions and dampen oscillations.

  27. Why is the chain rule important in backpropagation?

    It allows decomposing the gradient of the cost with respect to a weight into products of simpler derivatives, enabling efficient computation.

  28. How does the network compute the output for a given input?

    Feedforward: input layer → each hidden layer (weighted sum + bias → activation) → output layer (weighted sum + bias → activation).

  29. What is the purpose of the 'node cost' function?

    To measure the error of a single output node: (activation - target)^2, used to compute total cost.

  30. How does the network classify a new input?

    By feeding it forward through the network and selecting the output node with the highest activation value.

Card 1 of 30
Card 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent