6103 - Advanced ML
session: "6103-advanced-ml/2026-09-29 1830 Advance Machine Learning"
title: "Advance Machine Learning"
date: "2026-09-29 18:30"
duration: "1h 29m"
language: "en"
model: "deepseek-ai/DeepSeek-V3.2"
parts: 2
transcript_chars: 44983
generated: "2026-11-23T01:58:55+05:30"
This class covered activation functions, focusing on ReLU and its variants, and introduced the core training processes of forward and back propagation in neural networks. It then delved into the historical perceptron model, detailing its algorithm, weight update rule, and geometric interpretation. The session connects foundational concepts of neuron activation to the iterative training mechanics that underpin modern deep learning, setting the stage for more advanced optimization techniques.
The Rectified Linear Unit (ReLU) outputs the input directly if positive, else zero. This induces sparsity by deactivating neurons with negative inputs, which reduces computational load in large networks. It connects to efficiency in training deep models.
When neurons output zero for all inputs during training, they become permanently inactive, known as the "dying ReLU" problem. This matters because it can render parts of the network useless. Leaky ReLU is introduced as a solution.
A variant of ReLU that allows a small, non-zero gradient for negative inputs (e.g., 0.01x). This prevents neurons from dying by ensuring weight updates can still occur. It connects as a direct fix to the dying ReLU problem.
The process where input data passes through the network layer-by-layer using current weights and activation functions to produce an output (ŷ). It matters because it is the first step in the iterative training cycle, generating predictions.
The process following forward propagation where the prediction error is used to update the network's weights, moving backwards from the output layer. It is mandatory for learning, as it adjusts weights to minimize error.
A rule from the perceptron algorithm where weights are adjusted proportionally to the error, learning rate, and input. It matters as a foundational, interpretable learning rule that illustrates how models correct mistakes.
Viewing the weight vector and input vector in space, updates change the angle between them to correct misclassifications relative to a decision boundary. This connects the algebraic update rule to an intuitive, visual understanding of learning.
\( f(x) = \max(0, x) \)
Symbols: x is the net input to a neuron.
Use: Applied as an activation function in hidden layers for its simplicity and sparsity.
\( f(x) = \max(0.1x, x) \) [unclear]
Symbols: x is the net input; a small slope (e.g., 0.1) is used for x < 0.
Use: Mitigates the dying ReLU problem by allowing a small gradient for negative inputs.
\( h = g(W \cdot \text{input}) \)
Symbols: h is layer output, g is the activation function, W is the weight matrix.
Use: Computes the output of any layer in a neural network.
\( W_{\text{new}} = W_{\text{old}} + \alpha (t - o) x_i \)
Symbols: α is learning rate, t is target, o is predicted output, x_i is input.
Use: Updates weights in the perceptron algorithm when a misclassification occurs.
\( W \cdot X = |W||X| \cos \theta \)
Symbols: W is weight vector, X is input vector, θ is the angle between them.
Use: Explains classification based on the angle between weight and input vectors.
A1⁰, A2⁰, A3⁰).A1¹, A2¹, A3¹, A4¹).W11 means weight from the first neuron of the input layer to the first neuron of the hidden layer.1. Initialize all weights and parameters randomly.
2. For each neuron, calculate net input: (inputs * associated weights) + bias.
3. Pass net input through the layer's activation function to get the neuron's output.
4. Feed the outputs of one layer as inputs to the next layer.
A: No, activation is a function applied at every neuron, not a separate layer.
A: Yes, different layers can have different activation functions, but all neurons in a given layer use the same one.
A: Yes, for learning from data (model training), back propagation is mandatory. Without it, there is no weight update/learning.
A: When the error becomes zero (rare) or when the error stops reducing/improving.
A: Yes, bias is also a weight and gets updated during back propagation.
A: No, once training starts, you cannot change the number of layers or neurons. You can only change it before starting or after stopping a training run.
A: Yes, you can define custom activation functions based on requirements.
A: It often comes from experience and hit-and-trial. There is no hard and fast rule.
1. Given a neuron using ReLU, calculate its output for net inputs of 2.5 and -1.3. Explain the result in the context of sparse activation.
Outline: For 2.5: output = 2.5. For -1.3: output = 0. Explanation: ReLU deactivates neurons with negative input, outputting zero and contributing to network sparsity.
2. A perceptron with unit step activation misclassifies a positive sample (target=1). The current weight vector is [0.5, -0.2], input is [1.0, 0.5], and learning rate α=0.1. Calculate the new weight vector.
Outline: Error = target - predicted = 1 - 0 = 1. ΔW = α error input = 0.1 1 [1.0, 0.5] = [0.1, 0.05]. New W = [0.5, -0.2] + [0.1, 0.05] = [0.6, -0.15].
3. Describe the dying ReLU problem and how leaky ReLU attempts to solve it. Provide the formula for both.
Outline: Dying ReLU: neurons output zero for all inputs, becoming inactive. Leaky ReLU allows a small gradient (e.g., 0.01x) for x<0. Formulas: ReLU: f(x)=max(0,x); Leaky ReLU: f(x)=max(0.1x, x) [unclear].
4. Explain why the network architecture (layers, neurons) cannot be changed during training. What practical implication does this have?
Outline: Weights and connections are initialized at start; changing architecture mid-training invalidates the existing weight matrices and optimization state. Implication: Architecture must be finalized before training begins.
5. Using the vector dot product, explain why a data point with an angle >90° to the weight vector is classified as negative in a perceptron.
Outline: W·X = |W||X|cosθ. If θ > 90°, cosθ is negative, making W·X negative. With sign/step activation, negative net input yields a negative class prediction.
Example: (x=1, t=2), (x=2, t=3), w = b = 0, η = 0.1 → gradient w: −2, −6 (mean −4) → w = 0.4; gradient b: −2, −3 (mean −2.5) → b = 0.25.
C:\PORJECTX\aml-import\AML-FINAL-EXAM-ANSWER-KEY.md
One line per segment, [hh:mm:ss] timestamp first.
loading…