🇮🇳 Data Science & Machine Learning · subject

Data Science & Machine Learning Deep Learning and Natural Language Processing Syllabus

The Deep Learning and Natural Language Processing syllabus for Data Science & Machine Learning in full: 3 chapters, 11 topics and 22 sub-topics, every one listed below, plus 50 Deep Learning and Natural Language Processing flashcards with answers.

3Chapters
11Topics
22Sub-topics
50Flashcards

Deep Learning and Natural Language Processing syllabus: all 3 chapters

Expand any chapter to see its topics and sub-topics.

  1. Neural Network Fundamentals

    3 topics
    • Perceptron and Activation Functions
      • ReLU, sigmoid and tanh
      • Softmax output
    • Forward and Backpropagation
      • Loss functions
      • Gradient descent variants
    • Training Considerations
      • Learning rate and epochs
      • Dropout and regularization
      • Batch normalization
  2. Deep Learning Frameworks

    4 topics
    • TensorFlow and Keras
      • Sequential and functional API
      • Model compilation and fit
    • PyTorch Basics
      • Tensors and autograd
    • Convolutional Neural Networks
      • Convolution and pooling layers
      • Image classification
    • Recurrent Networks
      • RNN and LSTM
      • Sequence modeling
  3. Natural Language Processing

    4 topics
    • Text Preprocessing
      • Tokenization and stopwords
      • Stemming and lemmatization
    • Text Representation
      • Bag of Words and TF-IDF
      • Word embeddings
    • NLP Applications
      • Sentiment analysis
      • Text classification
    • Transformers Overview
      • Attention mechanism
      • Pretrained language models

Data Science & Machine Learning Deep Learning and Natural Language Processing flashcards — 50 questions with answers

  1. What is a perceptron in neural networks?

    A single artificial neuron that computes a weighted sum of inputs plus a bias, then applies an activation function to produce an output. It is the simplest building block of a neural network and is a linear binary classifier.

  2. What is the mathematical formula for a perceptron's output before activation?

    z = (w1*x1 + w2*x2 + ... + wn*xn) + b, i.e. z = w·x + b, where w are weights, x are inputs, and b is the bias.

  3. Why are non-linear activation functions necessary in neural networks?

    Without non-linearity, stacking layers would still produce only a linear function, so the network could not learn complex, non-linear patterns. Non-linear activations let the network approximate arbitrary functions.

  4. Define the sigmoid activation function and its output range.

    Sigmoid: σ(x) = 1 / (1 + e^(-x)). It maps any real input to the range (0, 1), making it useful for representing probabilities.

  5. What is the formula and output range of the tanh activation function?

    tanh(x) = (e^x - e^(-x)) / (e^x + e^(-x)). It outputs values in the range (-1, 1) and is zero-centered.

  6. Define the ReLU activation function.

    ReLU (Rectified Linear Unit): f(x) = max(0, x). It outputs x if x > 0 and 0 otherwise. It is computationally cheap and helps mitigate the vanishing gradient problem.

  7. What is the 'dying ReLU' problem and one solution?

    Neurons can get stuck outputting 0 for all inputs (zero gradient, never updating) when inputs are consistently negative. Leaky ReLU, which allows a small negative slope (f(x) = max(αx, x)), helps prevent this.

  8. What does the softmax function do and where is it typically used?

    Softmax converts a vector of raw scores into a probability distribution that sums to 1: softmax(xi) = e^(xi) / Σ e^(xj). It is typically used in the output layer for multi-class classification.

  9. What is forward propagation in a neural network?

    The process of passing input data through the network layer by layer, computing weighted sums and activations at each layer, to produce the final output (prediction).

  10. What is backpropagation?

    An algorithm that computes gradients of the loss function with respect to each weight by applying the chain rule backward through the network, enabling weight updates via gradient descent.

  11. Which mathematical rule is the foundation of backpropagation?

    The chain rule of calculus, which lets the gradient of the loss be decomposed into a product of partial derivatives propagated backward through each layer.

  12. What is the gradient descent weight update rule?

    w := w - η * (∂L/∂w), where η is the learning rate, L is the loss, and ∂L/∂w is the gradient of the loss with respect to the weight.

  13. What role does the learning rate play in training?

    It controls the step size for weight updates. Too high can cause divergence or overshooting; too low causes slow convergence or getting stuck in local minima.

  14. Compare batch, mini-batch, and stochastic gradient descent.

    Batch GD uses the entire dataset per update (stable but slow). Stochastic GD (SGD) uses one sample per update (fast but noisy). Mini-batch GD uses a small subset per update, balancing speed and stability; it is the most common.

  15. What is the vanishing gradient problem?

    In deep networks, gradients can become extremely small as they propagate backward through many layers, causing early layers to learn very slowly or stop learning. It is common with sigmoid/tanh activations.

  16. What is overfitting and what are two common ways to reduce it?

    Overfitting is when a model learns training data too well (including noise) and generalizes poorly to new data. It can be reduced via regularization (L1/L2, dropout) and gathering more/augmented data or early stopping.

  17. What is dropout and how does it help training?

    Dropout randomly deactivates a fraction of neurons during each training iteration, preventing co-adaptation and forcing redundancy. It acts as regularization to reduce overfitting.

  18. What is batch normalization and why is it useful?

    Batch normalization normalizes layer inputs (zero mean, unit variance) per mini-batch. It stabilizes and speeds up training, allows higher learning rates, and provides slight regularization.

  19. What is an epoch in neural network training?

    One complete pass through the entire training dataset. Training typically runs for many epochs.

  20. What is a loss (cost) function and name one used for classification.

    A loss function measures the difference between predicted and actual outputs, guiding optimization. Cross-entropy loss is commonly used for classification; mean squared error (MSE) is used for regression.

Show the other 30 Deep Learning and Natural Language Processing flashcards
  1. What is the Adam optimizer?

    Adam (Adaptive Moment Estimation) is an optimization algorithm that combines momentum and adaptive per-parameter learning rates using estimates of first and second moments of gradients. It is widely used for fast, robust convergence.

  2. What is TensorFlow?

    An open-source deep learning framework developed by Google for building and training machine learning models, using computational graphs and tensors, with support for CPUs, GPUs, and TPUs.

  3. What is Keras and its relationship to TensorFlow?

    Keras is a high-level neural network API focused on ease of use. It is the official high-level API integrated into TensorFlow (tf.keras), allowing models to be built with minimal code.

  4. Name the three ways to build a model in Keras.

    The Sequential API (linear stack of layers), the Functional API (for complex, multi-input/output or non-linear topologies), and Model subclassing (custom, fully flexible models).

  5. In Keras, what do the compile() and fit() methods do?

    compile() configures the model with an optimizer, loss function, and metrics. fit() trains the model on the data for a specified number of epochs and batch size.

  6. What is PyTorch?

    An open-source deep learning framework developed by Meta (Facebook) known for its dynamic computation graphs, Pythonic interface, and strong research community adoption.

  7. What is a tensor in PyTorch?

    A multi-dimensional array (similar to a NumPy array) that is the core data structure in PyTorch, supporting GPU acceleration and automatic differentiation.

  8. What is autograd in PyTorch?

    PyTorch's automatic differentiation engine that records operations on tensors (with requires_grad=True) and automatically computes gradients during the backward pass via .backward().

  9. Compare PyTorch's and TensorFlow's computation graphs.

    PyTorch uses dynamic computation graphs (define-by-run, built at runtime), favored for flexibility and debugging. TensorFlow traditionally used static graphs (define-then-run), though TF 2.x adopted eager execution by default.

  10. In PyTorch, what is the typical training loop sequence per batch?

    1) optimizer.zero_grad() to clear gradients, 2) forward pass to get predictions, 3) compute loss, 4) loss.backward() to compute gradients, 5) optimizer.step() to update weights.

  11. What is a Convolutional Neural Network (CNN) primarily used for?

    CNNs are primarily used for processing grid-like data such as images, performing tasks like image classification, object detection, and segmentation by automatically learning spatial feature hierarchies.

  12. What does a convolutional layer do in a CNN?

    It applies learnable filters (kernels) that slide over the input, computing dot products to produce feature maps that detect local patterns like edges, textures, and shapes.

  13. What is a pooling layer in a CNN and name a common type?

    A pooling layer downsamples feature maps to reduce spatial dimensions and computation while retaining important features and adding translation invariance. Max pooling (taking the maximum in each region) is common.

  14. What are stride and padding in a convolution?

    Stride is the number of pixels the filter moves each step (larger stride = smaller output). Padding adds extra pixels (often zeros) around the input border to control output size and preserve edge information.

  15. Why do CNNs use parameter sharing?

    The same filter weights are reused across all spatial positions of the input. This drastically reduces the number of parameters compared to fully connected layers and helps detect features regardless of location.

  16. What is a Recurrent Neural Network (RNN) and what data is it suited for?

    An RNN is a network with loops that maintain a hidden state (memory) across time steps, making it suited for sequential data such as text, time series, and speech.

  17. What problem do RNNs commonly suffer from with long sequences?

    Vanishing and exploding gradients, which make it difficult to learn long-range dependencies across many time steps.

  18. What is an LSTM and how does it improve on vanilla RNNs?

    Long Short-Term Memory is an RNN variant with a cell state and gates (input, forget, output) that regulate information flow, allowing it to capture long-term dependencies and mitigate vanishing gradients.

  19. What are the three gates in an LSTM and their roles?

    Forget gate (decides what to discard from cell state), input gate (decides what new information to store), and output gate (decides what to output from the cell state).

  20. What is a GRU and how does it compare to an LSTM?

    A Gated Recurrent Unit is a simplified RNN variant with two gates (reset and update) and no separate cell state. It is computationally lighter and faster than an LSTM while often achieving comparable performance.

  21. What is text preprocessing in NLP?

    The set of steps that clean and standardize raw text into a usable form for models, including tokenization, lowercasing, removing punctuation/stop words, stemming, and lemmatization.

  22. What is tokenization?

    The process of breaking text into smaller units called tokens, such as words, subwords, or characters, which serve as the basic input units for NLP models.

  23. Compare stemming and lemmatization.

    Stemming crudely chops word endings to a root (e.g., 'studies' -> 'studi'), fast but may produce non-words. Lemmatization uses vocabulary and morphology to return a valid base form (lemma) (e.g., 'studies' -> 'study'), more accurate but slower.

  24. What are stop words and why are they often removed?

    Stop words are common words (e.g., 'the', 'is', 'and') that carry little semantic meaning. They are often removed to reduce noise and dimensionality, though some tasks retain them.

  25. What is the Bag-of-Words (BoW) model?

    A text representation that counts word occurrences in a document while ignoring grammar and word order, producing a vector of word frequencies over the vocabulary.

  26. What is TF-IDF and what does it measure?

    Term Frequency-Inverse Document Frequency weights a word by how often it appears in a document (TF) times how rare it is across all documents (IDF). It highlights words that are important to a specific document but uncommon overall.

  27. What are word embeddings?

    Dense, low-dimensional vector representations of words that capture semantic meaning, such that words with similar meanings have similar vectors. Examples include Word2Vec and GloVe.

  28. Compare one-hot encoding with word embeddings.

    One-hot encoding produces sparse, high-dimensional vectors with no semantic relationships (every word equidistant). Word embeddings are dense, low-dimensional, and capture semantic similarity between words.

  29. Name three common NLP applications.

    Sentiment analysis, machine translation, named entity recognition (others include text summarization, question answering, chatbots, and spam detection).

  30. What is the Transformer architecture and its key innovation?

    A neural network architecture (introduced in 'Attention Is All You Need') that relies entirely on self-attention mechanisms instead of recurrence or convolution, enabling parallel processing of sequences and effective modeling of long-range dependencies. It is the basis for models like BERT and GPT.

Data Science & Machine Learning Deep Learning and Natural Language Processing FAQ

What is in the Data Science & Machine Learning Deep Learning and Natural Language Processing syllabus?

Data Science & Machine Learning Deep Learning and Natural Language Processing is split into 3 chapters: Neural Network Fundamentals, Deep Learning Frameworks and Natural Language Processing. Together they contain 11 topics and 22 sub-topics.

How many chapters are in Data Science & Machine Learning Deep Learning and Natural Language Processing?

3 chapters, containing 11 topics and 22 sub-topics. The largest chapter is Deep Learning Frameworks, with 4 topics.

Are there flashcards for Data Science & Machine Learning Deep Learning and Natural Language Processing?

Yes — a 50-card Deep Learning and Natural Language Processing deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.