Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : MACHINE LEARNING TECHNIQUES (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Consider a dataset of
points in
. The eigenvalues of the sample covariance matrix are:

If we run PCA on this dataset and retain the top-
principal components, what is a good choice of
using the heuristic that we retain the smallest
such that the retained components explain at least
% of the total variance?
If we run PCA on this dataset and retain the top-
Solution
Using the polynomial kernel

what is the dimension of the transformed feature space when the original input vector has dimension 3?
what is the dimension of the transformed feature space when the original input vector has dimension 3?
Solution
Suppose you toss a coin 100 times and observe
heads. Let
denote the probability of heads on each flip. Assume the following discrete prior over
:

What will be the maximum a posteriori estimate (MAP) of the parameter
?
What will be the maximum a posteriori estimate (MAP) of the parameter
Solution
Consider a linear regression model
, where
,
, and
. The squared-error loss function is defined as:

where
is the number of samples. Which of the following equations correctly represents the
gradient
?
where
gradient
Solution
Suppose you have a binary classification problem with 3-dimensional feature vectors
. You are given 50 positive and 50 negative training examples, and you want to build a decision tree classifier. Consider 4 possible splits at the root node:

Which of the following splits gives the highest information gain?
Which of the following splits gives the highest information gain?
Solution
Solution
In logistic regression, the batch gradient descent update rule is

where
.
For the current mini-batch containing two training samples

and the current weight vector and learning rate

compute the updated weight vector
.
where
For the current mini-batch containing two training samples
and the current weight vector and learning rate
compute the updated weight vector
Solution
Consider a linearly separable dataset
, where each feature vector satisfies
. Suppose there exists a weight vector
that correctly classifies all examples with
margin
. Let the perceptron algorithm be run on this dataset and produce a separating weight vector
, with margin is
. What will be the upper bound on the number of mistakes the perceptron can make?
margin
Solution
Comprehension Passage
Consider the transformation

associated with the polynomial kernel of degree (2):

A kernel-SVM is trained using this kernel, and the optimal weight vector is:

You may assume the dataset is linearly separable in the transformed space.
Based on the above data, answer the given subquestions.
associated with the polynomial kernel of degree (2):
A kernel-SVM is trained using this kernel, and the optimal weight vector is:
You may assume the dataset is linearly separable in the transformed space.
Based on the above data, answer the given subquestions.
What is the shape of the decision boundary in
?
Solution
Comprehension Passage
Consider the transformation

associated with the polynomial kernel of degree (2):

A kernel-SVM is trained using this kernel, and the optimal weight vector is:

You may assume the dataset is linearly separable in the transformed space.
Based on the above data, answer the given subquestions.
associated with the polynomial kernel of degree (2):
A kernel-SVM is trained using this kernel, and the optimal weight vector is:
You may assume the dataset is linearly separable in the transformed space.
Based on the above data, answer the given subquestions.
Which of the following training data-points are certainlynotsupport vectors?
Solution
For linearly separable data, a hard-margin SVM minimizes
subject to the constraints
for all
. If one of the training samples is removed, what may happen to the decision boundary?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
For input
, what is the network output
?
Solution
Comprehension Passage
Based on the above data, answer the given subquestions.
Based on
, what class would the network predict for
?
(Predict class 1 if
)
(Predict class 1 if
Solution
Comprehension Passage
You aim to build a model that predicts whether a student will pass a course (label = 1) or fail (label = 0) by the end of the semester. Each student is described by two input features:
: weekly study hours and
: attendance rate. As a baseline, you train a logistic regression model that outputs a probability
representing the likelihood that a student passes the course.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
How many parameters will be learned by the logistic regression model? Ignore the biases.
Solution
Comprehension Passage
You aim to build a model that predicts whether a student will pass a course (label = 1) or fail (label = 0) by the end of the semester. Each student is described by two input features:
: weekly study hours and
: attendance rate. As a baseline, you train a logistic regression model that outputs a probability
representing the likelihood that a student passes the course.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
You decide to train using a single hidden layer neural network with 2 hidden neurons on the same dataset and a single output neuron. How many parameters need to be learned?
Solution
In a random forest model, let
be the total number of features and
be the number of features randomly selected at each node to determine the best split. Which of the following statements are true?
Solution
Consider the following one-dimensional dataset with binary labels
.

AdaBoost uses decision stumps as weak learners. Assume the initial distribution of the dataset
assigns equal weights to all data points, i.e.,
, for
. At iteration
, AdaBoost chooses the decision stump

To train the second decision stump, which pair of points will be assigned equal weights to create the training dataset?
AdaBoost uses decision stumps as weak learners. Assume the initial distribution of the dataset
assigns equal weights to all data points, i.e.,
To train the second decision stump, which pair of points will be assigned equal weights to create the training dataset?
Solution
Shape
Thickness [ / ]
3
All colors