Question 1
What will be the result of applying ReLU to the following values?:
-2.7, 3.9, -1.0, 4.2, 6.4, -7.3
1, 3.9, 1, 4.2, 6.4, 1
0, 1, 0, 1, 1, 0
-2.7, 0, -1.0, 0, 0, -7.3
-1, +1, -1, +1, +1, -1
0, 3.9, 0, 4.2, 6.4, 0
The IIT Madras BS Machine Learning Techniques (MLT) End Term paper sat on 11 Dec 2022, in the September 2022 term, set ETD1: 30 questions for 100 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
What will be the result of applying ReLU to the following values?:
-2.7, 3.9, -1.0, 4.2, 6.4, -7.3
1, 3.9, 1, 4.2, 6.4, 1
0, 1, 0, 1, 1, 0
-2.7, 0, -1.0, 0, 0, -7.3
-1, +1, -1, +1, +1, -1
0, 3.9, 0, 4.2, 6.4, 0
Correct answer
0, 3.9, 0, 4.2, 6.4, 0
Suppose you run gradient descent for linear regression for 500 iterations with a learning rate 0.02. You observe that the training loss (sum of squared loss) is increasing after every iteration. What may be the reason? What changes would you make to the set-up for the gradient descent to converge to a solution?
Number of features in the training data may be too low, try increasing them.
Number of features in the training data may be too high, try reducing them.
Learning rate may be too low; Try increasing it.
Learning rate may be too high; Try reducing it.
Correct answer
Learning rate may be too high; Try reducing it.
Only dataset-1
Only dataset-2
On both dataset-1 and dataset-2
Neither dataset-1 nor dataset-2
Correct answer
On both dataset-1 and dataset-2
Yes
No
Correct answer
Yes
A set of data points is generated by the following process:
where is a Gaussian noise.
You use two models to fit the data:
Model 1:
Model 2:
Using a fixed number of training examples, Model 2 will have __________ bias than Model 1, and Model 1 is more likely to __________
Higher, underfit
Lower, overfit
Higher, overfit
Lower, underfit
Correct answer
Lower, underfit
Consider the following linearly separable training dataset for a binary classification problem in :
A hard-margin, linear-SVM is trained on this dataset. Among the four options given below, one of them is the optimal weight vector . Identify this vector. Recall that the optimal weight vector is the solution to the primal problem.
Correct answer
Consider the following data set:
Which of the following will have lower leave-one-out cross-validation error?
1-Nearest Neighbor
3-Nearest Neighbor
Correct answer
3-Nearest Neighbor
Consider that we introduce negative marking in this exam. After getting the results, you observe that eight of your friends have scored the following marks respectively:
{5, 6, -2, -3, 1, 7, -4, -1}
You want to cluster your friends into two groups based on their marks by using the Lloyd's algorithm.
You initialize the algorithm by keeping the first four friends, i.e., in cluster 1 () and the last four friends, i.e., in cluster 2 ().
How would the clusters look like after executing one step of Lloyd's algorithm?
Correct answer
Correct answers
Which of the following estimators are more likely to be preferred for bagging? Select all that apply.
A decision stump
A decision stump with randomly selected features for splitting the nodes
k -NN classifier with a smaller value of k.
k-NN classifier with a larger value of k .
A fully grown decision tree with randomly selected features for splitting the nodes
Correct answers
k -NN classifier with a smaller value of k.
A fully grown decision tree with randomly selected features for splitting the nodes
Correct answer: 40
Correct answer: 16
Consider a neural network with 8 inputs and 2 outputs. If there are 4 hidden layers each with 4 neurons, how many parameters need to be learnt if there is a bias associated with each neuron in the hidden and output layers?
Correct answer: 106
Based on the above data, answer the given subquestions.
Which of the two models is more likely to fit the training data better?
Model 1
Model 2
Both will fit equally well
Can not say
Correct answer
Model 2
Based on the above data, answer the given subquestions.
Which model is more likely to give less test error?
Model 1
Model 2
It will depend upon the underlying distribution that generates the dataset and therefore, can not say.
Both will give the equal error
Correct answer
It will depend upon the underlying distribution that generates the dataset and therefore, can not say.
Upon performing standard PCA on a centered dataset in , we get the principal components to be:
is the covariance matrix of the centered dataset. The off-diagonal entries are hidden from your view:
denotes a data-point. Here, are the three features.
Note: The word standard indicates that no kernel has been used.
Based on the above data, answer the given subquestions.
What is the variance along the first principal component?
Correct answer: 12
Upon performing standard PCA on a centered dataset in , we get the principal components to be:
is the covariance matrix of the centered dataset. The off-diagonal entries are hidden from your view:
denotes a data-point. Here, are the three features.
Note: The word standard indicates that no kernel has been used.
Based on the above data, answer the given subquestions.
Correct answer
Based on the above data, answer the given subquestions.
Correct answer: 0
Based on the above data, answer the given subquestions.
Correct answer
Based on the above data, answer the given subquestions.
How many mistakes does your algorithm make?
Correct answer: 2
Based on the above data, answer the given subquestions.
What is the squared length of the weight vector corresponding to the final linear separator your algorithm outputs?
Correct answer: 4
Based on the above data, answer the given subquestions.
What is the value of a?
Correct answer: 2
Based on the above data, answer the given subquestions.
What is the value of b?
Correct answer: 2
Based on the above data, answer the given subquestions.
What is the value of c?
Correct answer: 4
Based on the above data, answer the given subquestions.
Correct answer: 2
Consider a single iteration of the AdaBoost algorithm that was run on three sample points, starting with uniform weights on the sample points. The labels are either +1 or −1. In the table below, some values have been omitted.
| Data point | True label | Predicted label | Initial weight | Updated weight |
|---|---|---|---|---|
| ? | 1 | |||
| ? | ||||
| ? |
Based on the above data, answer the given subquestions.
What will be the true label for point x1 ? Enter 1 or -1 .
Correct answer: -1
Consider a single iteration of the AdaBoost algorithm that was run on three sample points, starting with uniform weights on the sample points. The labels are either +1 or −1. In the table below, some values have been omitted.
| Data point | True label | Predicted label | Initial weight | Updated weight |
|---|---|---|---|---|
| ? | 1 | |||
| ? | ||||
| ? |
Based on the above data, answer the given subquestions.
What will be the updated weight for point x2 ? Enter your answer correct to two decimal places.
Correct answer: 0.25 (accepted within ±0.02)
Consider a single iteration of the AdaBoost algorithm that was run on three sample points, starting with uniform weights on the sample points. The labels are either +1 or −1. In the table below, some values have been omitted.
| Data point | True label | Predicted label | Initial weight | Updated weight |
|---|---|---|---|---|
| ? | 1 | |||
| ? | ||||
| ? |
Based on the above data, answer the given subquestions.
How much training error will be incurred by the first estimator? The training examples consist of given three points. Enter your answer correct to two decimal places.
Correct answer: 0.33 (accepted within ±0.02)
There are points in a training dataset in for a binary classification problem that is linearly separable. Use the following notation: for a data-point and for the optimal weight vector of a hard-margin, linear-SVM.
| 0 | 1 | 1 |
| 0 | 2 | 1 |
| 1 | 1 | 1 |
| 2 | 0 | 1 |
| 0 | ||
| 0 | ||
| 0 | ||
| 1 |
Based on the above data, answer the given subquestions.
Correct answer: 4
There are points in a training dataset in for a binary classification problem that is linearly separable. Use the following notation: for a data-point and for the optimal weight vector of a hard-margin, linear-SVM.
| 0 | 1 | 1 |
| 0 | 2 | 1 |
| 1 | 1 | 1 |
| 2 | 0 | 1 |
| 0 | ||
| 0 | ||
| 0 | ||
| 1 |
Based on the above data, answer the given subquestions.
Correct answers