session: "6103-advanced-ml/2026-08-25 1830 Advance Machine Learning"
title: "Advance Machine Learning"
date: "2026-08-25 18:30"
duration: "1h 32m"
language: "en"
model: "deepseek-ai/DeepSeek-V3.2"
parts: 2
transcript_chars: 50009
generated: "2026-11-23T01:26:50+05:30"
Advanced Machine Learning
Overview
This class introduced the fundamental paradigms of machine learning, focusing on supervised learning and its distinction from unsupervised learning. It covered the structure of datasets, defining key components like features and target variables. The session explained the iterative training process where models learn by comparing predictions to ground truth. It also introduced the model development life cycle, including dataset splitting into training and testing sets. This class sets the foundation for understanding how ML algorithms are trained and evaluated.
Learning outcomes
- Distinguish between supervised and unsupervised learning.
- Identify the target variable and features in a dataset for a given problem.
- Explain the iterative training process of a machine learning model.
- Describe the purpose of splitting a dataset into training and testing subsets.
- Differentiate between classification and regression tasks.
Core concepts
Supervised Learning
A category of ML algorithms where the dataset includes a target variable (ground truth). The algorithm learns from labeled data, using the target as a supervisor to guide the learning process. This is the primary focus of the syllabus.
Unsupervised Learning
A category of ML algorithms where the dataset has no target variable. The algorithm works without a supervisor/guide to find patterns or structures, such as in clustering. It was noted that this is not in the syllabus but may be touched upon if time permits.
Dataset Structure
A collection of data organized into rows (observations) and columns. Columns are divided into features (independent variables) used to make predictions and the target variable (dependent variable/class/label/output) that we want to predict. The target is defined by the specific problem, not the dataset itself.
Classification vs. Regression
These are subcategories of supervised learning. Classification involves predicting a categorical target variable (e.g., yes/no, animal type). Regression involves predicting a continuous or numerical target variable (e.g., salary, temperature).
Model Development Life Cycle
The end-to-end process of building a model, which includes algorithm selection, training on a dataset, and validation/testing/evaluation. This class introduced the high-level steps, with more detail to come.
Training and Testing Process
The training process is iterative: the model scans the training dataset multiple times, makes predictions, compares them to the ground truth, and updates its parameters when errors occur. The testing process evaluates the trained model's performance on a separate, unseen testing dataset where the target variable is hidden.
Formulas and maths
(No formulas were explicitly presented in this class session.)
Worked examples
Example 1: Student Placement Prediction
- Task: Predict whether a final-year student will be placed.
- Dataset Columns: Roll number, name, CGPA (semesters 1–7), number of internships, technical knowledge, placement status (yes/no).
- Target Variable: Placement status (yes/no).
- Features: CGPA, internships, technical knowledge, etc.
Example 2: Car Purchase Prediction
- Dataset Columns: Name, height, education, city, age, salary, car purchased (yes/no), life insurance (yes/no).
- Task 1: Predict if a person will purchase a car.
- Target Variable: "Car purchased".
- Task 2: Predict a person's salary.
- Target Variable: "Salary".
- This illustrates that the target variable is defined by the problem, not the dataset.
Example 3: Predicting Height (Unsupervised Scenario)
- Dataset Columns: Name, salary, education, city, marital status, number of children.
- Task: Predict a person's height.
- Issue: The dataset lacks a height column. Therefore, there is no target variable/supervisor. This illustrates a scenario suited for unsupervised learning.
Example 4: Dataset Splitting
- Original dataset: 100 observations.
- Randomly select 70 observations (70%) for the training dataset.
- The remaining 30 observations (30%) form the testing dataset.
Example 5: Training Process (Image Recognition)
- Dataset with images of cats and dogs (target variable: animal type).
- The algorithm scans the training images multiple times to learn patterns distinguishing cats from dogs.
Example 6: Testing Process
- Use the testing dataset (e.g., observations 71 to 100).
- The target variable is removed/hidden from this set.
- The trained model makes predictions on these observations.
- Predictions are compared to the separately kept actual target values to evaluate performance.
Questions asked in class
- Q (Adit & Vipin): Asked about associating weights to features.
- A: Weights/coefficients training was already covered. Questions should be on topics already covered, not future modules.
- Q (General): Is there only one target column?
- A: Yes, in supervised learning, there is only one target column.
- Q (Praful): How to identify the target column?
- A: It depends on the problem/task. Gave the example of the same dataset where "car purchased" is the target for one task and "salary" for another.
- Q (Nishan): Who guides the training process?
- A: The target variable/ground truth/class variable/output variable guides the process by indicating if a prediction is correct or wrong.
- Q (Rahul): What is the ground truth in unsupervised learning?
- A: There is no ground truth in unsupervised learning; the target column is missing.
- Q (Multiple students): Is deep learning supervised or unsupervised?
- A: Deep learning is a subject/area containing many algorithms; some are supervised, some are unsupervised. Similarly for machine learning.
- Q (Priyansu): Does the target dataset change during training?
- A: The model learns from whatever is given in the training data.
- Q (Aditya): Are graphical models and NLP in the syllabus?
- A: Graphical models refer to CNNs (for images). Fundamental NLP will be covered, but detailed NLP and Gen AI/Agentic AI may be subjects in future semesters.
- Q (Unnamed): "label means what?"
- A: Refer to the recording of the session; it was covered in detail earlier (label is synonymous with target variable).
- Q (Unnamed): During the testing phase, do we need to exclude the target column manually?
- A: Yes, or logically you can exclude it. Both ways are possible.
- Q (Unnamed): Are we going to use random sampling within the training dataset while being used multiple times?
- A: No random sampling. All observations are provided to the model, possibly sequentially.
- Q (Unnamed): How to exclude the target variable?
- A: Learn through Python. A coding class/demonstration will be provided.
- Q (Unnamed): Will there be a distribution of questions by topic in exams?
- A: No distribution. Questions are based entirely on what is covered in class, with no fixed percentages per topic.
- Q (Unnamed): Will Python be taught?
- A: Two or three Python classes will focus on ML-related libraries and demonstrations (e.g., splitting datasets), not Python syntax itself.
Key takeaways
- Machine learning and deep learning are broad fields containing both supervised and unsupervised algorithms.
- In supervised learning, the dataset must contain a target variable (ground truth) that acts as a supervisor.
- The target variable is defined solely by the problem statement, not the dataset; the same dataset can have different targets for different tasks.
- Supervised learning is divided into classification (categorical target) and regression (continuous/numerical target).
- The training process is iterative: the model makes predictions, compares to ground truth, and updates parameters to reduce error.
- A dataset is typically split into a training set (~70-75%) for learning and a testing set (~25-30%) for evaluation.
- During testing, the target variable is excluded/hidden from the model; predictions are compared to the actual values kept separate.
- Unsupervised learning algorithms, like clustering, work on datasets without a target variable.
- The model development life cycle includes algorithm selection, training, and validation/testing/evaluation.
- Observations are individual rows/data points in a dataset.
- Features (independent variables) are used to predict the target variable (dependent variable).
- Error or misclassification occurs when the model's prediction does not match the ground truth.
Exam-style questions
1. Given a dataset for predicting house prices, identify the target variable and features. Then, state whether this is a classification or regression task.
- Answer Outline: The target variable is the house price (a continuous value), making it a regression task. Features would include columns like number of bedrooms, square footage, and location.
2. Describe the purpose of splitting a dataset into training and testing sets. What is a typical split ratio?
- Answer Outline: The training set is used to teach the model patterns, while the testing set evaluates its performance on unseen data to check for generalization. A typical ratio is 70% (or 75%) for training and 30% (or 25%) for testing.
3. Explain the key difference between supervised and unsupervised learning using an example.
- Answer Outline: In supervised learning (e.g., predicting student placement), the dataset has a target column (placement status) to guide learning. In unsupervised learning (e.g., grouping customers by purchasing behavior), there is no target column; the algorithm finds inherent patterns.
4. During the model testing phase, is the target variable available to the model? Justify your answer.
- Answer Outline: No, the target variable is excluded or hidden during testing. The model makes predictions based on features alone, and these predictions are later compared to the actual target values (kept separately) to evaluate accuracy.
Glossary
- Supervised Learning - ML where the dataset includes a target variable to guide learning.
- Unsupervised Learning - ML where the dataset has no target variable.
- Target Variable - The column in a dataset we want to predict; also called dependent variable, label, or ground truth.
- Features - The columns in a dataset used to predict the target; also called independent variables.
- Observation - A single row or data point in a dataset.
- Classification - A supervised learning task with a categorical target variable.
- Regression - A supervised learning task with a continuous/numerical target variable.
- Training Dataset - The subset of data used to train a model.
- Testing Dataset - The subset of data used to evaluate a trained model.
- Ground Truth - The correct answer or target variable value in the dataset.
- Error/Misclassification - When a model's prediction does not match the ground truth.
- Model Development Life Cycle - The process of building, training, testing, and optimizing an ML model.
Follow-ups
- Detailed explanation of the training process (how weights/coefficients are updated).
- Discussion on when to stop the training process (how to quantify when the model has learned enough).
- Detailed discussion of model validation/testing/evaluation metrics.
- How to update the model during training when errors occur (e.g., gradient descent).
- Unsupervised learning algorithms (mentioned as not in syllabus but may be touched upon if time permits).
- Coding demonstration in Python: importing datasets, visualization, splitting datasets, using ML/DL library functions.
- CNN (graphical models) and fundamental NLP.
- Agentic AI/Gen AI (potential future subjects).
Exam verification — corrections & additions
- Variable types (asked in Assignment 1, not covered in class):
- Nominal — categorical with no intrinsic order: zip code, city, colour, gender.
- Ordinal — categorical with order: small < medium < large.
- Continuous / numerical — real numbers: salary, height, price.
- Target variable: categorical → classification; continuous → regression. The target can be of any type ("All").
- Full 80-question answer key:
C:\PORJECTX\aml-import\AML-FINAL-EXAM-ANSWER-KEY.md