classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

6103 - Advanced ML

← 6103 - Advanced ML

Advance Machine Learning-20261006_183035-Meeting Recording

Date 2026-10-06 Length 1h 30m Words 9,293 Segments 767
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "6103-advanced-ml/2026-10-06 1830 Advance Machine Learning"

title: "Advance Machine Learning"

date: "2026-10-06 18:30"

duration: "1h 30m"

language: "en"

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

parts: 2

transcript_chars: 50830

generated: "2026-11-23T02:04:01+05:30"


Advanced Machine Learning

Overview

This class covered two main topics. First, it extended the perceptron model to the Widrow-Hoff learning rule (delta rule), which uses continuous activation and gradient descent, enabling its application to regression problems. Second, it introduced the fundamental challenge of Natural Language Processing (NLP): converting text into numerical data. The lecture began an overview of text vectorization methods, covering basic terminology and deterministic methods like one-hot encoding, Bag-of-Words, n-grams, and an introduction to TF-IDF, including their limitations.

Learning outcomes

Core concepts

Perceptron Model

A binary classification model inspired by the MCP model and Hebb's rule, featuring iterative weight updates. It matters as an early neural network that introduced forward and back propagation, but its limitations (binary-only, discrete activation, non-adaptive convergence) motivated more advanced models like the Widrow-Hoff rule.

Widrow-Hoff Learning Rule (Delta Rule)

An extension of the perceptron that uses a continuous activation function and gradient descent to minimize sum of squared error (SSE). It connects to the perceptron via a similar weight update formula but is significant because it enables regression tasks and continuous error-based learning.

Text Vectorization / Word Embedding

The mandatory process of converting text into numerical vectors/matrices for ML/DL models. This is the core challenge of NLP, as model success heavily depends on how well this conversion captures meaning. It connects to all subsequent NLP modeling.

Deterministic Vectorization Methods

Text vectorization techniques based on word counts or frequencies, including one-hot encoding, Bag-of-Words (BoW), and n-grams. They matter as foundational, interpretable methods but have key limitations (sparsity, OOV problem, loss of semantics) that motivate more advanced predictive methods.

TF-IDF (Term Frequency-Inverse Document Frequency)

A statistical measure used for text vectorization that evaluates a term's importance to a document within a corpus. It matters because it weights terms by their relevance, diminishing common words (stopwords) and highlighting distinctive ones, which is useful for document search and similarity.

Formulas and maths

Worked examples

Widrow-Hoff Rule Example

One-Hot Encoding Setup Example

1. "I love movie"

2. "Movies are good I was good movie"

One-Hot Encoding Vector Example

Bag-of-Words (BoW) Example

N-gram Example

Sparsity Example

TF-IDF Intuition Example (Google Search)

Questions asked in class

Key takeaways

Exam-style questions

1. Question: A perceptron model outputs a prediction o = 0 for an input x. The true label is t = 1, the learning rate is 0.1, and the current weight vector w_old is [0.5, -0.2] for x = [1, 3]. Calculate the updated weight vector w_new using the perceptron learning rule.

2. Question: Given a corpus with three documents: D1: "the cat", D2: "the dog", D3: "the cat and the dog". Using a vocabulary of unique words ["the", "cat", "dog", "and"], show the Bag-of-Words (count-based) vector representation for D3.

3. Question: Explain why TF-IDF might assign a high score to the word "bomb" in a document about cybersecurity, even if the word appears only once, while assigning a low score to the word "the" which appears many times.

4. Question: Describe two key limitations of one-hot encoding and Bag-of-Words models for text vectorization.

5. Question: For the sentence "machine learning is fun", list all bigrams (n=2).

Glossary

Follow-ups

Exam verification — corrections & additions

Transcript

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

loading…