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

Study methods

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

Neural Networks Intro

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

What inspired the development of artificial neural networks?

Tap to flipClick to flipspace

The structure and function of biological neural networks, particularly how neurons in the brain receive, process, and propagate electrical signals.

Or swipe the card

36 cards

  1. What inspired the development of artificial neural networks?

    The structure and function of biological neural networks, particularly how neurons in the brain receive, process, and propagate electrical signals.

  2. What is an artificial neural network (ANN)?

    A mathematical model for learning inspired by biological neural networks, consisting of interconnected units (artificial neurons) that map inputs to outputs.

  3. What are the components of a simple artificial neuron?

    Inputs (x1,x2,...x_1, x_2, ...x1​,x2​,...), weights (w1,w2,...w_1, w_2, ...w1​,w2​,...), a bias (w0w_0w0​), a weighted sum (sumwixi+w0sum w_i x_i + w_0sumwi​xi​+w0​), and an activation function.

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

    The bias (often denoted w0w_0w0​) shifts the activation function left or right, allowing the model to fit data better.

  5. Describe the step activation function and its output.

    The step function outputs 1 if the weighted sum plus bias is at least 0; otherwise outputs 0. It creates a binary threshold.

  6. What is the logistic sigmoid activation function and its output range?

    The sigmoid function has an S-shaped curve and outputs a real number between 0 and 1, often interpreted as a probability.

  7. What is the ReLU (Rectified Linear Unit) activation function?

    ReLU outputs the maximum of the input and 0: if positive, it remains unchanged; if negative, it becomes 0.

  8. How does a simple perceptron model the OR function?

    Set weights w1=1w_1=1w1​=1, w2=1w_2=1w2​=1, bias w0=−1w_0=-1w0​=−1, and use a step activation function. Output is 1 if either input is 1.

  9. How does a simple perceptron model the AND function?

    Set weights w1=1w_1=1w1​=1, w2=1w_2=1w2​=1, bias w0=−2w_0=-2w0​=−2, and use a step activation function. Output is 1 only if both inputs are 1.

  10. What is a limitation of a single perceptron?

    A single perceptron can only learn linearly separable decision boundaries; it cannot solve problems like XOR where data is not linearly separable.

  11. What is gradient descent?

    An algorithm for minimizing loss in a neural network by iteratively updating weights in the direction opposite to the gradient of the loss function.

  12. Describe the basic steps of the gradient descent algorithm.

    1. Start with random weights. 2. Repeat: calculate the gradient based on all data points. 3. Update weights in the opposite direction of the gradient by a small step size.
  13. What is the main computational expense in gradient descent?

    Calculating the gradient based on all data points at each iteration, especially when the dataset is large.

  14. What is stochastic gradient descent (SGD)?

    An alternative to gradient descent where the gradient is calculated using a single randomly chosen data point at each iteration.

  15. What is mini-batch gradient descent?

    A compromise between gradient descent and SGD: the gradient is calculated on a small batch (subset) of data points at each iteration.

  16. What is a multi-layer neural network and why is it useful?

    A neural network with one or more hidden layers between input and output. It can learn non-linear decision boundaries, overcoming the limitation of single perceptrons.

  17. What is backpropagation?

    An algorithm for training multi-layer neural networks by propagating the error backward from the output layer to earlier layers, updating weights to minimize loss.

  18. Explain the pseudocode for backpropagation with gradient descent.

    1. Start with random weights. 2. Repeat: calculate error for output layer; for each layer from output back to first hidden layer, propagate error back one layer and update weights.
  19. What is a deep neural network?

    A neural network with multiple hidden layers, part of deep learning. It can model high-level features and complex functions.

  20. What is dropout and how does it prevent overfitting?

    Dropout randomly removes a fraction of units (and their connections) during training, preventing over-reliance on any single neuron and promoting robustness.

  21. What is computer vision?

    Computational methods for analyzing and understanding images, enabling tasks like object detection, facial recognition, and handwriting recognition.

  22. How are images represented as input for neural networks?

    As grids of pixels, each pixel having numerical values (e.g., 0-255 for grayscale, or RGB values for color).

  23. What is image convolution?

    A technique that applies a kernel (filter) to an image to extract features like edges by multiplying pixel values with kernel weights and summing over a region.

  24. How does a kernel with 8 in the center and -1 on surrounding pixels detect edges?

    If a pixel value differs from its neighbors (e.g., higher), the output is positive; if all pixels are equal, the output is near zero.

  25. What is pooling in convolutional neural networks?

    A technique to reduce the spatial size of feature maps by sampling from regions, such as max-pooling (taking the maximum value in each region).

  26. What is max-pooling with a 2x2 pool size?

    For each 2x2 region of a feature map, the maximum value is selected, reducing the map size by half in each dimension.

  27. Describe the architecture of a convolutional neural network (CNN).

    Typical CNN: Input → Convolution (with multiple filters) → Pooling → Flatten → Fully Connected (dense) layers → Output.

  28. How do CNNs learn filters during training?

    The values of the kernel filters are learned via backpropagation and gradient descent, just like weights, to minimize the loss function.

  29. What is the purpose of using multiple convolution and pooling layers in a CNN?

    Early layers learn low-level features (edges, curves), and deeper layers learn higher-level features (shapes, objects) by building on previous layers.

  30. What is a feed-forward neural network?

    A neural network where connections move only in one direction: from input to hidden layers to output, with no cycles or feedback.

  31. What is a recurrent neural network (RNN)?

    A neural network that allows output from previous steps to be fed back as input to the network, maintaining a hidden state that captures sequential information.

  32. What is a one-to-many architecture in RNNs?

    One input (e.g., an image) generates a sequence of outputs (e.g., a caption), by feeding the output back into the network to produce the next word.

  33. What is a many-to-one architecture in RNNs?

    A sequence of inputs (e.g., video frames or words) produces a single output (e.g., classification). The network processes inputs one by one, updating its hidden state.

  34. What is a many-to-many architecture in RNNs?

    A sequence of inputs (e.g., English sentence) produces a sequence of outputs (e.g., French translation). The network first encodes the input sequence, then decodes to generate output sequence.

  35. What is an LSTM (Long Short-Term Memory) network?

    A type of RNN designed to capture long-range dependencies by using gating mechanisms to control the flow of information and prevent vanishing gradients.

  36. Give one application of RNNs in natural language processing.

    Classifying sentiment (positive/negative) of a movie review from a sequence of words using a many-to-one RNN.

Card 1 of 36
Card 1 of 36

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent