classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

6103 - Advanced ML

← 6103 - Advanced ML

Advance Machine Learning-20261024_092612-Meeting Recording

Date 2026-10-24 Words 10,708 Segments 884
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "6103-advanced-ml/2026-10-24 0926 Advance Machine Learning"

title: "Advance Machine Learning"

date: "2026-10-24 09:26"

duration: "--"

language: "en"

model: "deepseek-ai/DeepSeek-V3.2"

parts: 3

transcript_chars: 54854

generated: "2026-11-23T00:38:58+05:30"


Advanced Machine Learning

Overview

This class introduced Convolutional Neural Networks (CNNs) for image classification. It covered the fundamental operations of CNNs, including convolution with filters/kernels, stride, pooling (max and average), and the ReLU activation function. The lecture explained how these layers perform feature extraction from raw image data and how extracted features are then passed to fully connected layers for classification. This session fits into the course as the foundation for understanding deep learning architectures specifically designed for spatial data like images.

Learning outcomes

Core concepts

Edge Detection

The process of identifying points in an image where there is a sharp change in brightness or intensity. This matters because edges are low-level features that form the basic building blocks for more complex patterns recognized by deeper network layers.

Convolution Operation

The core mathematical operation of a CNN, where a filter (or kernel) slides over the input image. At each position, an element-wise multiplication is performed between the filter and the image patch, and the results are summed to produce a single value in the output feature map. This matters because it allows the network to detect local features regardless of their position in the image.

Filters/Kernels

Small matrices of weights used in the convolution operation to detect specific features like edges or textures. They are analogous to the weights in a Multi-Layer Perceptron (MLP). Their values are initially random and are updated via backpropagation based on the classification error.

Stride

The number of pixels the filter moves each step during the convolution operation. A stride of 1 moves the filter one pixel at a time, while a stride of 2 jumps two pixels. This matters because stride controls the size of the output feature map and the level of overlap between successive filter applications.

Pooling

A down-sampling operation that reduces the spatial dimensions (height and width) of the feature map. Max pooling takes the maximum value from a window (e.g., 2x2), while average pooling takes the average. This matters because it reduces computational complexity, provides a form of translation invariance, and helps prevent overfitting.

ReLU Activation

The Rectified Linear Unit activation function, defined as max(0, value). It converts all negative input values to zero. This matters because it introduces non-linearity into the model, allowing it to learn more complex patterns, and it helps mitigate the vanishing gradient problem.

Feature Extraction Stack

The repeated sequence of convolution, ReLU, and pooling layers that form the early part of a CNN. These layers progressively extract higher-level features, from simple edges to textures and object parts. This matters because it automates the process of learning hierarchical feature representations directly from data.

Fully Connected Layer / MLP

A traditional Multi-Layer Perceptron that follows the feature extraction stack. It takes the flattened features as input and outputs class probabilities. This matters because it performs the final classification task based on the high-level features extracted by the convolutional layers.

Hyperparameter Tuning

The process of selecting parameters like filter size, number of filters, stride, and number of layers before training. These are not updated via gradient descent. This matters because the choice of hyperparameters significantly impacts model performance and is primarily determined through trial, error, and domain experience.

Formulas and maths

Worked examples

1. Convolution: Input matrix [[1,0],[1,0]] and filter [[1,1],[0,0]] → (1×1)+(0×1)+(1×0)+(0×0) = 1.

2. Edge Detection Filter: A 3x3 filter [[1,-1,-1],[-1,1,-1],[-1,-1,1]] applied to a 3x3 input yielded an output value of 0.77.

3. Pooling: A 7x7 image, using a 2x2 window with stride=2 for max pooling, shrinks the representation to a 4x4 matrix by taking the maximum value in each window.

4. Flatten Layer: A 2x2 feature map is converted into a 4x1 vector (e.g., [a, b, c, d]).

5. Error Calculation: For a binary classification (dog vs. cat), if the model predicts a probability of 0.51 for "dog" but the true label is "cat" (0), the absolute error is 0.51. After backpropagation and filter updates, a subsequent prediction might improve to 0.93 for dog.

Questions asked in class

Key takeaways

Exam-style questions

1. Describe the sequence of operations in a typical CNN from input image to class prediction.

Outline: Input image → Convolution (with filter) → ReLU activation → Pooling (e.g., max pooling) → [Repeat convolution/ReLU/pooling stack] → Flatten layer → Fully Connected Layers (MLP) → Output layer (e.g., softmax/sigmoid) → Class prediction.

2. Explain the purpose of the stride parameter in convolution and how a stride of 2 differs from a stride of 1.

Outline: Stride controls how many pixels the filter moves after each operation. A stride of 1 moves the filter one pixel at a time, producing a larger, more detailed output feature map. A stride of 2 moves the filter two pixels, skipping intermediate pixels, which reduces the output size and computational load, and can provide translation invariance.

3. Why are pooling layers used in CNNs, and what is the key difference between max pooling and average pooling?

Outline: Pooling layers reduce the spatial dimensions of feature maps, decreasing computational cost and parameters, and providing a form of translation invariance. Max pooling selects the maximum value from a window, preserving the strongest activated feature. Average pooling computes the mean, which can smooth out the feature map.

4. A student says backpropagation is used to find the optimal stride value. Is this correct? Justify your answer.

Outline: Incorrect. Backpropagation uses gradient descent to update the values of filters/weights based on error. Stride is a hyperparameter, like filter size or number of layers, which is fixed before training and tuned via trial and error or cross-validation, not by gradient-based optimization.

Glossary

Follow-ups

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…