CS 6375: Introduction to Machine Learning - Lecture 2

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

flashcard set

Earn XP

Description and Tags

Flashcards covering machine learning paradigms, formal supervised learning components, feature spaces, empirical risk minimization, and instance-based nearest neighbor algorithms from CS 6375 Lecture 2.

Last updated 9:38 PM on 10/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

How does Tom Mitchell formally define Machine Learning?

A computer program is said to learn from experience EE with respect to some task TT and some performance measure PP, if its performance on TT, as measured by PP, improves with experience EE.

2
New cards

What are the core differences between Supervised Learning, Unsupervised Learning, and Reinforcement Learning?

Supervised Learning trains on labeled examples with known answers to predict unseen data. Unsupervised Learning finds hidden structure or patterns in data without known answers. Reinforcement Learning trains an agent interacting with an environment to learn policies that maximize cumulative rewards.

3
New cards

In Tom Mitchell's framework, what are the Task (TT), Performance measure (PP), and Experience (EE) for the indoor vs. outdoor image classification problem?

Task (TT): Distinguish indoor vs. outdoor images; Performance measure (PP): Probability of misclassifying; Experience (EE): Labeled examples of indoor and outdoor images.

4
New cards

In unsupervised language modeling, what are the Task (TT), Performance measure (PP), and Experience (EE)?

Task (TT): Next token (word) prediction; Performance measure (PP): Perplexity (uncertainty or "confusion" of predicting the next word in a sequence); Experience (EE): Large and diverse text datasets.

5
New cards

How are Task (TT), Performance measure (PP), and Experience (EE) defined for an agent learning to play Atari arcade games via reinforcement learning?

Task (TT): Play Atari arcade games; Performance measure (PP): Winning or advancing; Experience (EE): State, action, and reward sequences from previous gameplay episodes.

6
New cards

Why is eigenvalue calculation generally not considered a supervised learning task?

Eigenvalue calculation is a purely mathematical problem that has no labels or training data from which to learn.

7
New cards

What do the mathematical symbols X\mathcal{X}, Y\mathcal{Y}, ff, and H\mathcal{H} represent in the formal supervised learning framework?

X\mathcal{X} is the input space (set of possible instances), Y\mathcal{Y} is the output space, f:X→Yf: \mathcal{X} \rightarrow \mathcal{Y} is the unknown target function, and H={h∣h:X→Y}\mathcal{H} = \{h \mid h: \mathcal{X} \rightarrow \mathcal{Y}\} is the hypothesis class (set of candidate models). The goal is to find h∈Hh \in \mathcal{H} that best approximates ff.

8
New cards

What are the four feature types categorized in the lecture, and what defines each?

  1. Nominal (including Boolean): Categorical values with no ordering among them; 2. Ordinal: Values with a total ordering; 3. Numeric (continuous): Real-valued measurements; 4. Hierarchical: Values partially ordered within a tree or hierarchy.
9
New cards

What is the dimension of the feature space for an image from the CIFAR-10 dataset, consisting of 32×3232 \times 32 color images across 1010 classes?

The dimension is 30723072, because each color image has 33 color channels (RGB) and 32×3232 \times 32 pixels (3×32×32=30723 \times 32 \times 32 = 3072).

10
New cards

How does the output space Y\mathcal{Y} distinguish classification from regression?

In classification, the output space Y\mathcal{Y} is discrete (elements are categorical classes, either binary or multi-class). In regression, the output space Y\mathcal{Y} is continuous (real-valued numbers).

11
New cards

What is the objective of Empirical Risk Minimization (ERM) in supervised learning?

To select a hypothesis f^∈H\hat{f} \in \mathcal{H} that minimizes the average loss over the training instances: f^=arg⁡min⁡h∈H1n∑i=1nℓ(h(x(i)),y(i))\hat{f} = \arg\min_{h \in \mathcal{H}} \frac{1}{n} \sum_{i=1}^n \ell(h(x^{(i)}), y^{(i)}), where ℓ\ell is the loss function.

12
New cards

What is the key difference between batch learning and online learning?

Batch learning receives all training instances at once to train the model, whereas online learning receives instances sequentially and updates the model incrementally.

13
New cards

Why do time-series instances violate the common theoretical assumption that training instances are independent and identically distributed (i.i.d.)?

Instances from time series usually have temporal dependencies on previous instances rather than being mutually independent.

14
New cards
<p>What geometric diagram, shown below, defines the decision regions of a 1-Nearest Neighbor (1NN) classifier?</p>

What geometric diagram, shown below, defines the decision regions of a 1-Nearest Neighbor (1NN) classifier?

A Voronoi diagram, where each convex polygonal cell contains all points in the space that are closer to a particular training point than to any other training point.

15
New cards

What is the classification decision rule for a kk-Nearest Neighbors (kNNk\text{NN}) algorithm?

It finds the kk most similar training points to a test point and assigns the plurality class (the most popular class among the kk neighbors): y^=arg⁡max⁡y∈Y∑i=1k1(y=y(i))\hat{y} = \arg\max_{y \in \mathcal{Y}} \sum_{i=1}^k \mathbb{1}(y = y^{(i)}).

16
New cards

How are Hamming distance, Euclidean distance, and Manhattan (L1L_1) distance defined between instances x(i)x^{(i)} and x(j)x^{(j)}?

Hamming distance (discrete): dH(x(i),x(j))=∑a=1d1{xa(i)≠xa(j)}d_H(x^{(i)}, x^{(j)}) = \sum_{a=1}^d \mathbb{1}\{x^{(i)}_a \neq x^{(j)}_a\}; Euclidean distance (continuous): d(x(i),x(j))=∑a=1d(xa(i)−xa(j))2d(x^{(i)}, x^{(j)}) = \sqrt{\sum_{a=1}^d (x^{(i)}_a - x^{(j)}_a)^2} ; Manhattan distance: d(x(i),x(j))=∑a=1d∣xa(i)−xa(j)∣d(x^{(i)}, x^{(j)}) = \sum_{a=1}^d |x^{(i)}_a - x^{(j)}_a|.

17
New cards

What is the standardization procedure for features in kNNk\text{NN}, and why is it applied?

Empirical mean μ\mu and standard deviation σ\sigma are computed from the training set, and features are transformed via x−μσ\frac{x - \mu}{\sigma} (applied identically to test points) to prevent features with larger scales from disproportionately dominating distance metrics.

18
New cards

What is the prediction formula for kk-Nearest Neighbors (kNNk\text{NN}) regression?

It finds the kk most similar training points to the test instance and outputs the mean label: y^=1k∑i=1ky(i)\hat{y} = \frac{1}{k} \sum_{i=1}^k y^{(i)}.

19
New cards

Why is the weight function wi=(d(p,xi))1/2w_i = (d(p, x_i))^{1/2} inappropriate for distance-weighted nearest neighbor algorithms?

Distance-weighted nearest neighbor requires weights to decrease as distance increases to give closer neighbors more influence; wi=(d(p,xi))1/2w_i = (d(p, x_i))^{1/2} increases with distance, improperly giving higher weight to farther points.

20
New cards

What are the primary strengths and weaknesses of Instance-Based Learning methods like kNNk\text{NN}?

Strengths: Easy to explain predictions, simple to implement and conceptualize, requires no explicit training phase, and often performs well in practice. Weaknesses: Sensitive to irrelevant and correlated features, computationally expensive at test/prediction time, and produces no interpretable model.

21
New cards

Given the 2D training dataset with points (0,0):+(0,0):+, (1,0):+(1,0):+, (2,0):+(2,0):+, (2,2):+(2,2):+, (0,1):−(0,1):-, (0,2):−(0,2):-, (1,2):−(1,2):-, and (3,1):−(3,1):-, what labels are predicted for A(1,1)A(1,1) and B(2,1)B(2,1) using a 3NN classifier with Euclidean distance?

Point AA is labeled −- (its 3 nearest neighbors are (0,1)[−](0,1)[-], (1,0)[+](1,0)[+], and (1,2)[−](1,2)[-]). Point BB is labeled ++ (its 3 nearest neighbors are (2,0)[+](2,0)[+], (2,2)[+](2,2)[+], and (3,1)[−](3,1)[-]).