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)
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)
Solution
Inscript
Consider a dataset for a binary classification problem with five features, each of which is binary. If we go for a generative model that satisfies the class-conditional independence assumption, then how many free parameters do we need to learn?
Consider a dataset for a binary classification problem with five features, each of which is binary. If we go for a generative model that satisfies the class-conditional independence assumption, then how many free parameters do we need to learn?
Solution
Inscript
Consider a regression problem in which we use a neural network with the following architecture:
- Input layer has
neurons
- Two hidden layers, each with
neurons
- Output layer with one neuron
Find the total number of parameters in the network. Ignore the biases.
Consider a regression problem in which we use a neural network with the following architecture:
- Input layer has
- Two hidden layers, each with
- Output layer with one neuron
Find the total number of parameters in the network. Ignore the biases.
Solution
Inscript

Solution
In the context of bagging, consider a dataset of size
. A bag is a set of
points that is obtained by sampling uniformly at random from the dataset with replacement. Which of the following represents the probability that a data-point
is not a part of the bag?
Solution
Consider a dataset for a binary classification problem with features in
as shown in the figure. The red points belong to class
while the green points belong to class
. Which of the following classifiers is the most appropriate choice?

Solution
Comprehension Passage
Consider a soft-margin SVM that has been trained on a dataset with
, where
is the hyperparamter that controls the tradeoff between the margin and the hinge loss. Let
be the optimal weight vector. Consider a data-point
in the dataset for which
.
is the slack corresponding to this point and
is the multiplier corresponding to the primal constraint for this point.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Inscript
Find the value of
. Enter your answer correct to one decimal place.
Find the value of
Solution
Comprehension Passage
Consider a soft-margin SVM that has been trained on a dataset with
, where
is the hyperparamter that controls the tradeoff between the margin and the hinge loss. Let
be the optimal weight vector. Consider a data-point
in the dataset for which
.
is the slack corresponding to this point and
is the multiplier corresponding to the primal constraint for this point.
Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Inscript
Find the value of
. Enter your answer correct to one decimal place.
Find the value of
Solution
Consider a polynomial kernel,
of degree
. Let
. Which of the following is/are true?
Solution
Two loss functions are plotted in this graph. What are the two?

Solution
Let
be the covariance matrix of a centered dataset with
data-points in
, where
is the data-matrix of shape
. Let
be the
principal component. Which of the following is/are true?
Solution
Inscript
Consider the following decision tree for a binary classification problem with features in
and labels in
.

If
denotes the set of all points in
for which the decision tree outputs
as the predicted label, find the area corresponding to the region
. Enter the nearest integer as your answer.
Consider the following decision tree for a binary classification problem with features in
If
Solution
Inscript
Consider a logistic regression classifier trained on a dataset for a binary classification problem with features in
and labels in
. The weight vector learnt by the classifier is
. Given
a test data-point
, the probability
, where
is the base of the natural logarithm. Find the value of
and enter the nearest integer as your answer.
Consider a logistic regression classifier trained on a dataset for a binary classification problem with features in
a test data-point
Solution
Comprehension Passage
Consider a linearly separable dataset,
, for a binary classification problem with features in
and labels in
that has a positive margin.
has ten data-points out of which five of them belong to the class
. Assume that all ten data-points occupy distinct locations in
.
Let
be the optimal weight vector output by a hard-margin SVM. Consider three subsets of
as given below:

denotes the cardinality of the set. Note that
. Answer the given sub-questions.
Let
Inscript
What is
? If you cannot compute this value with the given information, enter
as the answer.
What is
Solution
Comprehension Passage
Consider a linearly separable dataset,
, for a binary classification problem with features in
and labels in
that has a positive margin.
has ten data-points out of which five of them belong to the class
. Assume that all ten data-points occupy distinct locations in
.
Let
be the optimal weight vector output by a hard-margin SVM. Consider three subsets of
as given below:

denotes the cardinality of the set. Note that
. Answer the given sub-questions.
Let
Inscript
What is
? If you cannot compute this value with the given information, enter
as the answer.
What is
Solution
Comprehension Passage
Consider a linearly separable dataset,
, for a binary classification problem with features in
and labels in
that has a positive margin.
has ten data-points out of which five of them belong to the class
. Assume that all ten data-points occupy distinct locations in
.
Let
be the optimal weight vector output by a hard-margin SVM. Consider three subsets of
as given below:

denotes the cardinality of the set. Note that
. Answer the given sub-questions.
Let
Which of the following is/are true?
Solution
Consider a dataset with two data-points for a binary classification problem with features in
.
is a data-point from the positive class while
is from the negative class. We now consider three linear classifiers: perceptron, logistic regression and SVM.


If
is the weight vector with the largest margin, which of the following is true?
If
Solution
Consider a dataset consisting of
datapoints
, where each
. Let the four features be denoted by
and
.Suppose the features satisfy the following linear relationship:

That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable
using these features. Consider the following statements: Consider the following statements: Which of the following is (are) true?
That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable
Solution
Shape
Thickness [ / ]
3
All colors