CS412 REVIEW QUESTIONS
Week 1: Introduction
What is supervised learning?
What is the difference between a regression task and a classification task?
What is an intrinsic error?
Explain the working mechanism of decision trees?
What is overfitting and underfitting?
Models that underfit will exhibit high training error (we may have to add more attributes or use a more
complex model) Models that overfit will exhibit low error on the training data but high error on
test/unseen data.
What is the curse of dimensionality?
List 8 different leaning approaches in machine learning
What are some text preprocessing techniques?
What is the TF-IDF representation?
What are filters and wrappers?
What is used for baseline error?
What is cross validation? And why do we split our data set?
What is a discriminative and a generative classifier?
Discriminative: Directly estimate P(y|x) generative: Estimate P(x|y) to then deduce P(y|x)
What is entropy and Huffman code?
What is pruning?
What are some pros and cons of decision tree?
What is the working mechanism of random forest?
What is bootstrapping?
What is boosting?
What are some pros and cons of random forests?
What is bagging and how can it be used alongside boosting to control variance/bias?
Bias-variance analysis teaches us that we have two options: ▪ If model underfits (high bias, low variance):
combine with other lowvariance models ◦ Need to be different: 'experts' on different parts of the data ◦
Bias reduction. Can be done with Boosting ▪ If model overfits (low bias, high variance): combine with
other lowbias models ◦ Need to be different: individual mistakes must be different ◦ Variance reduction.
Can be done with Bagging
Explain the KNN algorithm
Given training data D={(x1,y1),…,(xN,yN)}
test sample x
• Find the k most-similar training examples
• For classification, choose the majority label among those neighbors and assign to the test sample
• For regression, choose the average target among those neighbors and assign to the test sample
• Algorithm requires hyper-parameter k and a distance function to compute similarities between x and
training samples
What are the impacts of different level of k?
What are some distance measures that we can use?
What is the impact of normalization?
How do we choose k?
This is a hyper-parameter that we need to define beforehand. We will discuss how it may effect the
model performance Start with a default value which usually is k < N