session: "6103-advanced-ml/2026-09-22 1830 Advance Machine Learning"
title: "Advance Machine Learning"
date: "2026-09-22 18:30"
duration: "1h 30m"
language: "en"
model: "deepseek-ai/DeepSeek-V3.2"
parts: 2
transcript_chars: 54937
generated: "2026-11-23T01:54:11+05:30"
Advanced Machine Learning
Overview
This class introduced the fundamentals of Artificial Neural Networks (ANNs), the core paradigm of deep learning. It covered the biological inspiration, key characteristics like parallel processing and fault tolerance, and the basic mathematical model of a neuron. The lecture distinguished between feed-forward and recurrent network architectures and explained how network design relates to problem types like regression and classification. This session lays the groundwork for understanding more complex neural network models covered later in the course.
Learning outcomes
- Explain the biological inspiration and key characteristics of artificial neural networks.
- Differentiate between feed-forward and recurrent network architectures and their applications.
- Describe the complete structure and function of a single artificial neuron, including inputs, weights, bias, net input, and activation functions.
- Determine the appropriate number of output neurons for a given classification problem.
- Identify and describe the properties of basic activation functions (binary step, linear, sigmoid, tanh).
Core concepts
Artificial Neural Network (ANN)
An information processing paradigm inspired by the human brain and nervous system. It matters because it forms the basis for all deep learning models, enabling solutions to complex perceptual and sequential problems that are difficult for conventional algorithms.
Neuron (Processing Unit)
The smallest computational unit in a network; it receives weighted inputs, sums them, applies an activation function, and produces an output. This is the fundamental building block of all neural networks, and its mathematical model connects directly to concepts from linear and logistic regression.
Parallel & Distributed Processing
Neural networks process information simultaneously across many simple, interconnected processors (neurons), unlike sequential algorithms. This characteristic contributes to fault tolerance and efficiency, and it is a key differentiator from conventional digital computing systems.
Network Architecture
The design of a network, including the number of layers, neurons per layer, types of connections, and activation functions. The architecture is directly tied to the problem type (e.g., feed-forward for classification, recurrent for sequential data) and determines the network's computational capabilities.
Activation Function
A function applied to a neuron's net input to produce its output, often introducing non-linearity. The choice of activation function is critical as it determines if and how a neuron "fires," enables the learning of complex patterns, and affects the feasibility of training via gradient descent.
Formulas and maths
(No explicit formulas were presented in the first part of the lecture.)
- Net input (z):
z = (input1 weight1) + (input2 weight2) + ... + bias_weight - Symbols:
z is the net input (weighted sum), inputN are the input values, weightN are the associated weights, bias_weight is the weight associated with the bias term. - Used when: Calculating the aggregated signal inside a single neuron before applying the activation function.
Worked examples
- Biological brain example: Contains millions of neurons.
- Historical example: First neural network model (MCP) dates to around 1940-41.
- Input layer sizing: Neuron count equals the number of features in the dataset (e.g., features: x1 (age), x2 (salary), x3 (weight)).
- Classification output layer example: For a 3-class problem (dog, cat, horse), three output neurons can output probabilities (e.g., cat: 0.6, dog: 0.3, horse: 0.1).
- Rule for output neurons: For
n classes, you need n - 1 neurons (using one class as a reference). For binary classification (2 classes), one output neuron is required. - Weight matrix example: For an input layer with 3 neurons connected to a hidden layer with 3 neurons, weights are stored in a 3x3 matrix:
[w11, w12, w13; w21, w22, w23; w31, w32, w33]. - Binary step activation example: If threshold is 10 and net input is 2.56, output is 0.
- Classification threshold example: If probability threshold is 0.5 and model output is 0.51, class is "yes." If threshold is changed to 0.6, the same 0.51 output leads to class "no."
Questions asked in class
- Q (Sachin): What type of connection is shown in the diagram?
- A: It is a fully connected neural network.
- Q (Hrithika): Is the entire network the algorithm, or is each neuron an algorithm?
- A: The entire network is the algorithm, not the individual neurons.
- Q (Asis): What do you mean by class 1 and class zero?
- A: "Class" refers to the categories in a classification problem (e.g., spam/not spam, cat/dog).
- Q (Saurabh): What are the characteristics of deep learning?
- A: Parallel processing, fault tolerance, and distributed computing.
- Q (Anu Jai): How is neural network parallelism different from multi-threading in machine learning?
- A: Parallel ML versions exist (e.g., in big data), but neural networks work in a more cohesive, coupled way with many small, interconnected neurons.
- Q: How to decide the number of neurons in the output layer?
- A: For classification, intuition: For
n classes, you need n - 1 neurons (using one class as a reference class). - Q (Rohit): Why
n - 1 neurons? - A: One class can be used as a reference class. If an input is not in the other
n-1 classes, it belongs to the reference class. - Q (Sachin): Are all activation functions differentiable?
- A: No. Binary step activation function is not differentiable. Linear/identity is differentiable but cannot solve non-linear problems. Non-linear activation functions (sigmoid, tanh) are differentiable and support backpropagation.
Key takeaways
- Artificial Neural Networks are inspired by biological neural systems and process information in a parallel, distributed manner.
- Key characteristics of neural networks include parallel processing, fault tolerance, and the use of many simple, interconnected processors.
- The two main architectural types are Feed-Forward Networks (FNNs) for regression/classification and Feedback/Recurrent Networks (RNNs) for sequential data.
- A neuron computes a weighted sum of its inputs (net input) and passes the result through an activation function to produce an output.
- A bias term, with a fixed input value of 1 and a trainable weight, is a mandatory input to every neuron.
- For a classification problem with
n classes, the output layer typically requires n neurons, though a reference class approach can reduce this to n-1. - Weights between layers are stored in matrices, where the matrix dimensions are determined by the number of neurons in the connected layers.
- The binary step activation function outputs discrete values (e.g., 0/1) based on a threshold but is not differentiable, limiting its use in gradient-based learning.
- Linear activation functions are differentiable but cannot model complex, non-linear relationships required for deep learning.
- Non-linear activation functions like sigmoid and tanh are differentiable and enable the training of multi-layer networks via backpropagation.
- The tanh function outputs values between -1 and +1 and is zero-centered, making it suitable for hidden layers.
- The choice of activation function directly impacts a network's ability to learn and the efficiency of the training process.
Exam-style questions
1. Compare and contrast the information processing in conventional digital systems and biological neural systems.
- Outline: Digital systems use few, powerful, centralized processors working sequentially. Biological systems use millions of simple, slow neurons working in parallel, are robust, and excel at perceptual tasks.
2. For a classification task with 5 distinct classes, how many neurons would you design in the output layer? Justify your answer.
- Outline: Typically 5 neurons (one per class). Alternatively, 4 neurons if using a reference class approach, where the 5th class is inferred if none of the 4 neurons activate.
3. Describe the step-by-step computation inside a single artificial neuron, including all key components.
- Outline: Inputs multiplied by weights -> Summation with bias weight to get net input (z) -> Application of activation function -> Output.
4. Why are non-linear activation functions essential for training deep neural networks, whereas linear functions are not?
- Outline: Non-linear functions allow the network to model complex patterns and are differentiable, enabling gradient descent and backpropagation. A network with only linear activations can be collapsed into a single linear layer.
5. Given a weight matrix of size 4x6 connecting two layers, how many neurons are in the first layer and how many in the second?
- Outline: The matrix dimensions correspond to (neurons in source layer) x (neurons in destination layer). Therefore, the first layer has 4 neurons, and the second layer has 6 neurons.
Glossary
- ANN (Artificial Neural Network) - Information processing paradigm inspired by the human brain.
- Neuron - The smallest computational unit in a neural network.
- Feed-forward network (FNN) - A network where information flows in one direction without cycles.
- Recurrent network (RNN) - A network containing loops, allowing information feedback and temporal memory.
- Bias - A mandatory input to every neuron, with a fixed value of 1 and a trainable weight.
- Net input - The weighted sum of a neuron's inputs (including bias).
- Activation function - A function applied to the net input to produce a neuron's output.
- Fully connected network - A network where every neuron in one layer connects to every neuron in the next layer.
- Architecture - The design of a network, including layers, neurons, and connections.
- Perceptron - An early supervised learning algorithm for neural networks.
Follow-ups
- Detailed discussion on parallel computing property and how it differs from machine learning.
- Explanation of MCP model and Hebb's learning rule (historical background).
- Perceptron algorithm (stated as the starting point for the course).
- ReLU activation function (to be covered next class).
- How weights from different layers are combined.
- Detailed role and properties of bias.
- Why non-linear activation functions are important (link to gradient descent and backpropagation).
- Gradient descent optimization algorithm (mentioned as not in syllabus but will be covered).
- Vanishing and exploding gradient problems (to be discussed during RNN).
- Softmax function details.
- Solving regression problems using neural networks (coding class).
- Convolutional Neural Networks (CNNs), LSTMs, Encoder-Decoders, GANs, Transformers (stated as part of the course).
- How to decide the number of neurons in hidden layers.
- Clarification on "memory" in RNNs.
- Architecture examples: YOLO, ImageNet, RNN architectures.