classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

6103 - Advanced ML

← 6103 - Advanced ML

Advance Machine Learning-20260912_092547-Meeting Recording

Date 2026-09-12 Length 1h 27m Words 12,545 Segments 684
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "6103-advanced-ml/2026-09-12 0925 Advance Machine Learning"

title: "Advance Machine Learning"

date: "2026-09-12 09:25"

duration: "1h 27m"

language: "en"

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

parts: 3

transcript_chars: 62966

generated: "2026-11-23T01:47:46+05:30"


Advanced Machine Learning

Overview

This class focused on the foundational concepts of supervised learning, specifically regression versus classification problems. It introduced the core algorithm of simple linear regression, covering its mathematical formulation, parameter derivation, and practical application. The session emphasized understanding the process from data exploration and feature selection to model training and prediction, setting the stage for implementation.

Learning outcomes

Core concepts

Supervised Learning

A type of machine learning where the model learns from labeled data (input-output pairs). It matters because it is the basis for predictive tasks like forecasting and categorization, forming the core of this lecture's focus on regression.

Regression vs. Classification

Regression predicts a continuous numerical value (e.g., price), while classification predicts a discrete class label (e.g., spam/not spam). Distinguishing between them is the first step in choosing the correct algorithm and evaluation metrics for a given problem.

Simple Linear Regression

An algorithm that models the linear relationship between one independent variable (x) and one dependent variable (y) using a best-fit line. It is foundational for understanding how models learn parameters from data to make predictions.

Correlation

A statistical measure ranging from -1 to 1 that quantifies the linear relationship between two variables. It is crucial for feature selection in linear regression, as the independent variable with the highest correlation to the target is typically chosen.

Model Training and Prediction

Training is the process of using known data (X, y) to calculate the model parameters (β₀, β₁). Prediction involves using these learned parameters with new input data (x) to estimate an output (ŷ). This encapsulates the end-to-end machine learning workflow.

Formulas and maths

Symbols: y is the predicted dependent variable; β₀ is the intercept; β₁ is the slope; x is the independent variable.

Used when: Defining the relationship between variables or making a prediction after training.

Symbols: xᵢ, yᵢ are individual data points; x̄, ȳ are the means of x and y.

Used when: Calculating the slope from training data using deviations from the mean.

Symbols: n is the number of data points; Σ denotes summation.

Used when: Calculating the slope directly from sums of the data.

Symbols: ȳ is the mean of y; β₁ is the slope; x̄ is the mean of x.

Used when: Calculating the intercept after the slope is known.

Worked examples

Questions asked in class

A: Accuracy = number of correct predictions ÷ total predictions = (TP + TN) / (TP + TN + FP + FN). F1 score is the harmonic mean of precision and recall, requiring understanding of the confusion matrix.

A: Yes, 100%. Cross-entropy measures error in classification.

A: No, execution is not the immediate focus. Understanding the concept is more important. Materials will be provided later.

A: That ratio also describes the relationship. The given formulas are standard and can be verified online.

A: We use the known x and y (training data) to calculate β₀ and β₁ to create the model. This model can then predict y for new, unseen x values.

A: Yes, 100%. You need to memorize it. The formulas for slope and intercept are fixed.

A: We check the correlation score via a heatmap. Our dependent variable is price. Engine size has the highest correlation (0.87) with price, so it is chosen.

A: No. Correlation score is only used for finding/choosing the independent variable. Beta 0 and beta 1 are for the linear regression model itself.

Key takeaways

Exam-style questions

1. Given a small dataset of (x, y) pairs, calculate the slope (β₁) and intercept (β₀) for the simple linear regression line.

Outline: Calculate x̄ and ȳ. Compute Σ(xᵢ - x̄)(yᵢ - ȳ) and Σ(xᵢ - x̄)². Apply formula β₁ = Σ(xᵢ - x̄)(yᵢ - ȳ) / Σ(xᵢ - x̄)². Then calculate β₀ = ȳ - β₁x̄.

2. A dataset has a target variable 'price' and features 'engine size' (corr=0.87) and 'length' (corr=0.69). Which feature should be used as the independent variable in a simple linear regression model to predict price, and why?

Outline: Choose 'engine size'. In simple linear regression, you select the single independent variable with the highest absolute correlation to the dependent variable to model the strongest linear relationship.

3. Describe the step-by-step process, from raw data to prediction, for building a simple linear regression model.

Outline: 1) Load and explore data. 2) Ensure target (y) and feature (x) are numeric. 3) Select the feature (x) with highest correlation to y. 4) Calculate x̄ and ȳ from training data. 5) Compute β₁ using the slope formula. 6) Compute β₀ = ȳ - β₁x̄. 7) The model is now defined. 8) For a new x, predict y using y = β₀ + β₁x.

Glossary

Follow-ups

Transcript

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

loading…