CS 441: APPLIED MACHINE LEARNING - FINAL
REVIEW
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: With different sets of M test samples, we would probably get the same
error measurement. - Answers - False. There would be some variance in the error
measurement.
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: If we increase M, we should get a more accurate (lower variance)
estimate of the error. - Answers - True. Increasing M decreases the variance of the
estimate.
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: If we increase N (training size) but do not change M, we'd expect the test
error to be unchanged. - Answers - False. Test error should generally go down because
more training samples help better fit the model.
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: The expected error does not depend on M, but it does depend on N. -
Answers - True.
Lecture 2-3: K-NN, Classification, Regression, and Data
Which assumptions are implied by using Euclidean (L2) distance for K-NN? - Answers -
(a, b) Each feature dimension is equally important, and feature dimensions have
comparable scales.
Lecture 2-3: K-NN, Classification, Regression, and Data
Classify the '+' with 1-NN. ('o' or 'x'?) - Answers - 'x'
Lecture 2-3: K-NN, Classification, Regression, and Data
Classify the '+' with 3-NN. ('o' or 'x'?) - Answers - 'o'
Lecture 2-3: K-NN, Classification, Regression, and Data
Which of these are true of nearest neighbor? (choose all that apply)
Options: Fast inference, Fast training, Can be applied if only one sample per class is
available, Not commonly used in practice, Most powerful with feature learning - Answers
- (b, c, e) Fast training, Can be applied if only one sample per class, Most powerful with
feature learning.
Lecture 4: Clustering and Retrieval
True or false: K-means assigns each point to the nearest of the established K centers. -
Answers - True.
,Lecture 4: Clustering and Retrieval
True or false: A very structured distribution of points can make K-means not converge. -
Answers - False. K-means always converges.
Lecture 4: Clustering and Retrieval
True or false: High-dimensional data points cause K-means to iterate more times before
a good clustering. - Answers - False. Number of iterations depends on #clusters and
#points, not directly on dimension.
Lecture 4: Clustering and Retrieval
True or false: High-dimensional data increases computational cost and people often
stop K-means early. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: K-means is deterministic but sensitive to initialization. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: If we don't know much about the data, people often choose K based on
memory or computational limits. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: Clustering methods like K-means and hierarchical K-means are sensitive
to local connectivity. - Answers - False. They are not sensitive to local connectivity in
the way suggested.
Lecture 4: Clustering and Retrieval
True or false: If some attributes are more important, standard K-means can still yield a
good clustering without adjustments. - Answers - False. K-means treats all features
equally unless we use weighting.
Lecture 4: Clustering and Retrieval
True or false: One big advantage of hierarchical K-means is computational efficiency. -
Answers - True.
Lecture 4: Clustering and Retrieval
True or false: Agglomerative clustering can be sensitive to local connectivity with a good
choice of linkage. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: LSH idea is used where an approximate nearest neighbor is acceptable. -
Answers - True.
Lecture 4: Clustering and Retrieval
, If you have continuous-valued feature vectors and want to group them, how do
clustering methods help? - Answers - Clustering assigns cluster-IDs based on similarity,
making it easier to group continuous vectors by similar attributes.
Lecture 4: Clustering and Retrieval
For a group of pictures, what attributes could produce a good clustering? - Answers -
Mixed attributes (discrete like "contains humans?" or "landscape type" and continuous
like brightness or texture density) can be used.
Lecture 4: Clustering and Retrieval
If you used two clustering algorithms on unlabeled data, how do you compare results? -
Answers - Label a subset and compute purity. Compare which clustering yields higher
purity.
Lecture 4: Clustering and Retrieval
Which distance measure for "Each dimension same scale, dominated by large
differences"? (L2, L1, Mahalanobis) - Answers - L2
Lecture 4: Clustering and Retrieval
Which distance measure for "Each dimension same scale, sensitive to sum of absolute
differences"? - Answers - L1
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: In dimensionality reduction, points in lower dimension should preserve
some relationship from original dimension. - Answers - True.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: PCA eigenvectors can be imaginary, making PCA useless. - Answers -
False. Eigenvectors of a real symmetric covariance matrix are real.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: PCA eigenvectors capture discriminative features. - Answers - False. PCA
captures directions of maximum variance, not necessarily discriminative features.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: PCA components may have qualitative significance (e.g., eigenfaces). -
Answers - True.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: The largest PCA components are always most important. - Answers -
False. Depends on what is considered "important" for the application.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: Non-linear embedding methods focus on relationships even if
reconstruction is impossible. - Answers - True.
REVIEW
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: With different sets of M test samples, we would probably get the same
error measurement. - Answers - False. There would be some variance in the error
measurement.
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: If we increase M, we should get a more accurate (lower variance)
estimate of the error. - Answers - True. Increasing M decreases the variance of the
estimate.
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: If we increase N (training size) but do not change M, we'd expect the test
error to be unchanged. - Answers - False. Test error should generally go down because
more training samples help better fit the model.
Lecture 2-3: K-NN, Classification, Regression, and Data
True or false: The expected error does not depend on M, but it does depend on N. -
Answers - True.
Lecture 2-3: K-NN, Classification, Regression, and Data
Which assumptions are implied by using Euclidean (L2) distance for K-NN? - Answers -
(a, b) Each feature dimension is equally important, and feature dimensions have
comparable scales.
Lecture 2-3: K-NN, Classification, Regression, and Data
Classify the '+' with 1-NN. ('o' or 'x'?) - Answers - 'x'
Lecture 2-3: K-NN, Classification, Regression, and Data
Classify the '+' with 3-NN. ('o' or 'x'?) - Answers - 'o'
Lecture 2-3: K-NN, Classification, Regression, and Data
Which of these are true of nearest neighbor? (choose all that apply)
Options: Fast inference, Fast training, Can be applied if only one sample per class is
available, Not commonly used in practice, Most powerful with feature learning - Answers
- (b, c, e) Fast training, Can be applied if only one sample per class, Most powerful with
feature learning.
Lecture 4: Clustering and Retrieval
True or false: K-means assigns each point to the nearest of the established K centers. -
Answers - True.
,Lecture 4: Clustering and Retrieval
True or false: A very structured distribution of points can make K-means not converge. -
Answers - False. K-means always converges.
Lecture 4: Clustering and Retrieval
True or false: High-dimensional data points cause K-means to iterate more times before
a good clustering. - Answers - False. Number of iterations depends on #clusters and
#points, not directly on dimension.
Lecture 4: Clustering and Retrieval
True or false: High-dimensional data increases computational cost and people often
stop K-means early. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: K-means is deterministic but sensitive to initialization. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: If we don't know much about the data, people often choose K based on
memory or computational limits. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: Clustering methods like K-means and hierarchical K-means are sensitive
to local connectivity. - Answers - False. They are not sensitive to local connectivity in
the way suggested.
Lecture 4: Clustering and Retrieval
True or false: If some attributes are more important, standard K-means can still yield a
good clustering without adjustments. - Answers - False. K-means treats all features
equally unless we use weighting.
Lecture 4: Clustering and Retrieval
True or false: One big advantage of hierarchical K-means is computational efficiency. -
Answers - True.
Lecture 4: Clustering and Retrieval
True or false: Agglomerative clustering can be sensitive to local connectivity with a good
choice of linkage. - Answers - True.
Lecture 4: Clustering and Retrieval
True or false: LSH idea is used where an approximate nearest neighbor is acceptable. -
Answers - True.
Lecture 4: Clustering and Retrieval
, If you have continuous-valued feature vectors and want to group them, how do
clustering methods help? - Answers - Clustering assigns cluster-IDs based on similarity,
making it easier to group continuous vectors by similar attributes.
Lecture 4: Clustering and Retrieval
For a group of pictures, what attributes could produce a good clustering? - Answers -
Mixed attributes (discrete like "contains humans?" or "landscape type" and continuous
like brightness or texture density) can be used.
Lecture 4: Clustering and Retrieval
If you used two clustering algorithms on unlabeled data, how do you compare results? -
Answers - Label a subset and compute purity. Compare which clustering yields higher
purity.
Lecture 4: Clustering and Retrieval
Which distance measure for "Each dimension same scale, dominated by large
differences"? (L2, L1, Mahalanobis) - Answers - L2
Lecture 4: Clustering and Retrieval
Which distance measure for "Each dimension same scale, sensitive to sum of absolute
differences"? - Answers - L1
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: In dimensionality reduction, points in lower dimension should preserve
some relationship from original dimension. - Answers - True.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: PCA eigenvectors can be imaginary, making PCA useless. - Answers -
False. Eigenvectors of a real symmetric covariance matrix are real.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: PCA eigenvectors capture discriminative features. - Answers - False. PCA
captures directions of maximum variance, not necessarily discriminative features.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: PCA components may have qualitative significance (e.g., eigenfaces). -
Answers - True.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: The largest PCA components are always most important. - Answers -
False. Depends on what is considered "important" for the application.
Lecture 5: Dimensionality Reduction: PCA and Low-D Embeddings
True or false: Non-linear embedding methods focus on relationships even if
reconstruction is impossible. - Answers - True.