Paragraphs 5.1 - 5.7

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

1/232

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:06 AM on 9/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

233 Terms

1
New cards
What does it mean to learn according to Mitchell's definition?
To improve performance P on tasks T through experience E.
2
New cards
What does T denote in the definition of learning?
The class of tasks the program must perform.
3
New cards
What does P denote in the definition of learning?
A quantitative measure of task performance.
4
New cards
What does E denote in the definition of learning?
Experience, such as examples in a dataset.
5
New cards
For a robot learning to walk, what is the task?
Walking; learning is the means of acquiring that ability.
6
New cards
What is an example in machine learning?
A collection of measured features of an object or event.
7
New cards
How is an example usually represented?
As a vector x in R^n, with one feature per component.
8
New cards
What does a k-class classifier produce?
A label from k categories, possibly along with class probabilities.
9
New cards
What makes classification with missing inputs distinctive?
It must work even when some input features are not observed.
10
New cards
What does a regression model produce?
A continuous numerical value or vector of such values.
11
New cards
What is transcription as an ML task?
Turning an unstructured input into a discrete sequence of symbols.
12
New cards
How do transcription and machine translation differ?
Transcription extracts symbols from a signal; translation converts a symbol sequence into another language.
13
New cards
What is a structured-output task?
A task whose output components have relationships, such as a sequence or tree.
14
New cards
What is anomaly detection?
Identifying inputs or events that are unusual relative to normal data.
15
New cards
What are synthesis and sampling?
Generating new examples resembling those from the learned distribution.
16
New cards
What is imputation of missing values?
Predicting unobserved parts of an example from the parts that are available.
17
New cards
What is denoising?
Reconstructing a clean example from a corrupted, noisy version.
18
New cards
What is learned in density estimation?
A function assigning probabilities or densities to inputs.
19
New cards
Why does the performance measure P depend on the task?
Different tasks call for different quantitative criteria of success.
20
New cards
What is accuracy?
The fraction of examples classified correctly.
21
New cards
What is the error rate?
The fraction of examples classified incorrectly.
22
New cards
What is 0-1 loss on an individual example?
Zero for a correct prediction and one for an incorrect prediction.
23
New cards
What is a common performance measure for density estimation?
The average log probability assigned to evaluation examples.
24
New cards
Why use a separate test set?
To estimate performance on data unseen during training.
25
New cards
Why can selecting P be difficult?
A metric may not reflect the desired behavior or may be impractical to compute.
26
New cards
What does a dataset contain?
Many examples, each with features and sometimes a target.
27
New cards
What does an unsupervised algorithm typically learn?
The structure of p(x) or its properties without assigned targets.
28
New cards
What does a supervised algorithm typically learn?
To predict y from x, often by modeling p(y given x).
29
New cards
What is a label or target?
The desired output associated with a supervised example.
30
New cards
What is clustering?
Grouping similar examples into clusters.
31
New cards
Why are supervised and unsupervised learning not rigid categories?
A problem can sometimes be reformulated using methods from the other category.
32
New cards
How does the chain rule factorize p(x)?
p(x) = product from i=1 to n of p(x_i given x_1,...,x_(i-1)).
33
New cards
How can p(y given x) be obtained from p(x,y)?
Normalize the joint distribution: p(y given x) = p(x,y) / sum over y' of p(x,y').
34
New cards
What is semi-supervised learning?
Training with some labeled examples and some unlabeled examples.
35
New cards
What is multi-instance learning?
A collection is labeled, but its individual members are not.
36
New cards
How does reinforcement learning differ from learning from a fixed dataset?
The agent interacts with an environment and affects its later experiences.
37
New cards
What is a design matrix X?
A matrix with one example per row and one feature per column.
38
New cards
What are the dimensions of the Iris design matrix described in the text?
150 rows and 4 features: X in R^(150×4).
39
New cards
When is a design matrix unsuitable?
When examples cannot all be represented by vectors of the same length.
40
New cards
What does y_i represent in a supervised dataset?
The target for example i.
41
New cards
What is the task of linear regression?
Predicting a scalar target y from an input vector x.
42
New cards
What is the prediction of linear regression without an intercept?
ŷ = w^T x.
43
New cards
What does w represent in linear regression?
The vector of parameters or feature weights.
44
New cards
What is the effect of a positive weight w_i?
Increasing x_i raises the prediction if other features stay fixed.
45
New cards
What is the effect of a negative weight w_i?
Increasing x_i lowers the prediction if other features stay fixed.
46
New cards
What does w_i = 0 mean?
Feature x_i makes no direct contribution to the prediction.
47
New cards
What is MSE over m examples?
The mean (1/m) sum_i (ŷ_i − y_i)^2.
48
New cards
How can MSE be expressed in vector form?
MSE = (1/m) ||ŷ − y||_2^2.
49
New cards
What does ordinary linear regression minimize during training?
Mean squared error on the training set.
50
New cards
What is the stationarity condition for the least-squares minimum?
The gradient of MSE with respect to w equals zero.
51
New cards
What are the normal equations for linear regression?
X^T X w = X^T y.
52
New cards
What is the closed-form solution if X^T X is invertible?
w = (X^T X)^(-1) X^T y.
53
New cards
What is linear regression with an intercept?
ŷ = w^T x + b.
54
New cards
How can the intercept b be incorporated into the weight vector?
Add an input feature that is always 1.
55
New cards
What is an affine function in this context?
ŷ = w^T x + b; it need not pass through the origin.
56
New cards
Is intercept b the same as statistical bias?
No. b is an intercept; statistical bias is the expected estimation error relative to the true value.
57
New cards
What is generalization?
The ability to perform well on new inputs not seen during training.
58
New cards
What is training error?
Error measured on the examples used to fit the model.
59
New cards
What is generalization error?
Expected error on a new input from the distribution of interest.
60
New cards
How is generalization error usually estimated?
By measuring error on a separately collected test set.
61
New cards
What does i.i.d. stand for?
Independent and identically distributed examples.
62
New cards
What key assumption about train and test sets does the text make?
They are sampled from the same data-generating distribution p_data.
63
New cards
For a model fixed before sampling, how do expected train and test errors compare?
They are equal when the sets come from the same distribution.
64
New cards
Why is training error generally lower than test error after fitting?
Parameters were selected specifically to reduce training error.
65
New cards
What are the two main challenges for generalization?
Keeping training error low and keeping the train-test gap small.
66
New cards
What is underfitting?
Failure to achieve sufficiently low training error.
67
New cards
What is overfitting?
An excessively large gap between training and test error.
68
New cards
What is a model's capacity?
Its ability to fit a wide variety of functions.
69
New cards
What is the risk of insufficient capacity?
Underfitting because the model cannot represent the required pattern.
70
New cards
What is the risk of excessive capacity relative to the data?
Overfitting by adapting to peculiarities of the training sample.
71
New cards
What is a hypothesis space?
The set of functions the algorithm may select.
72
New cards
How can polynomial regression capacity be increased?
Add higher powers of the input as new features.
73
New cards
Why is quadratic regression still linear in its parameters?
b + w_1 x + w_2 x² is linear in coefficients w_1 and w_2.
74
New cards
What happens when a degree-one polynomial fits truly quadratic data?
It underfits because it cannot represent the curvature.
75
New cards
What may happen when a degree-nine polynomial fits a few quadratic data points?
It may pass through training points but behave poorly between them and on new data.
76
New cards
What is representational capacity?
The range of functions a model family can express.
77
New cards
What is effective capacity?
The range of solutions the full algorithm can actually find given optimization limits.
78
New cards
Why can effective and representational capacity differ?
Optimization may fail to find the best available function in the family.
79
New cards
What is Occam's razor?
Prefer a simpler hypothesis among those that explain observations equally well.
80
New cards
What does VC dimension measure?
The largest number of points in some configuration that a binary classifier can label arbitrarily.
81
New cards
How do generalization-gap bounds change?
They grow with model capacity and shrink as the training sample grows.
82
New cards
How does training error typically change with capacity?
It tends to decrease as capacity increases.
83
New cards
How does generalization error typically change with capacity?
It tends to trace a U-shaped curve with a minimum at intermediate capacity.
84
New cards
What is a parametric model?
A model with a finite number of parameters fixed before observing data.
85
New cards
What is a nonparametric model?
A model whose complexity is not limited to a fixed parameter count.
86
New cards
Why is nearest neighbor nonparametric?
It stores training data, and its complexity grows with the dataset.
87
New cards
How does nearest-neighbor regression predict?
It returns the target of the nearest training example.
88
New cards
What is Bayes error?
The irreducible error of a predictor that knows the true data distribution.
89
New cards
Why can even an oracle make errors?
Targets can be noisy, stochastic, or dependent on unobserved variables.
90
New cards
What can more training data do to the train-test gap?
It can reduce the gap and improve generalization.
91
New cards
What does the no-free-lunch theorem say when averaged over all distributions?
No classification algorithm is universally better on unseen inputs.
92
New cards
Why does no free lunch not prevent useful learning algorithms?
We can choose assumptions suited to the real-world distributions of interest.
93
New cards
What is regularization?
A change to a learning algorithm intended to lower generalization error.
94
New cards
How can preferences among functions be expressed?
Add an objective penalty or constrain the eligible solutions.
95
New cards
What is the L2 weight-decay objective?
J(w) = MSE_train + λ w^T w.
96
New cards
What does λ control in weight decay?
How strongly small weights are preferred.
97
New cards
What happens when λ = 0?
No L2 penalty is applied to the weights.
98
New cards
What can happen if λ is excessively large?
Weights shrink too much and the model may underfit.
99
New cards
What can happen if λ is too small?
Regularization may fail to prevent overfitting.
100
New cards
What is the regularizer Ω(w) in weight decay?
Ω(w) = w^T w, the squared L2 norm of the weights.