MauryaHub PYQ Practice

Machine Learning Techniques · End Term · Jan 2026 · AN

Machine Learning Techniques · End Term · Jan 2026 AN

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 17 published solutions

Question 2 NAT · 3.0 marks

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?

A published solution is not available for this question yet.

Report a correction for Q2

Question 3 NAT · 3.0 marks

Consider a regression problem in which we use a neural network with the following architecture: • Input layer has
Source diagram or notation
neurons • Two hidden layers, each with
Source diagram or notation
neurons • Output layer with one neuron Find the total number of parameters in the network. Ignore the biases.

A published solution is not available for this question yet.

Report a correction for Q3

Question 4 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q4

Question 5 MCQ · 3.0 marks

In the context of bagging, consider a dataset of size
Source diagram or notation
. A bag is a set of
Source diagram or notation
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
Source diagram or notation
is not a part of the bag?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q5

Question 6 MCQ · 3.0 marks

Consider a dataset for a binary classification problem with features in
Source diagram or notation
as shown in the figure. The red points belong to class
Source diagram or notation
while the green points belong to class
Source diagram or notation
. Which of the following classifiers is the most appropriate choice?
Source diagram or notation
A.
Hard-margin, Linear SVM
B.
Hard-margin, Kernel SVM, with a suitable kernel
C.
Soft-margin, Linear SVM
D.
Soft-margin, Kernel SVM, with a suitable kernel

A published solution is not available for this question yet.

Report a correction for Q6

Question 7 NAT · 2.0 marks

Consider a soft-margin SVM that has been trained on a dataset with
Source diagram or notation
, where
Source diagram or notation
is the hyperparamter that controls the tradeoff between the margin and the hinge loss. Let
Source diagram or notation
be the optimal weight vector. Consider a data-point
Source diagram or notation
in the dataset for which
Source diagram or notation
.
Source diagram or notation
is the slack corresponding to this point and
Source diagram or notation
is the multiplier corresponding to the primal constraint for this point. Based on the above data, answer the given subquestions.
Find the value of
Source diagram or notation
. Enter your answer correct to one decimal place.

A published solution is not available for this question yet.

Report a correction for Q7

Question 8 NAT · 2.0 marks

Consider a soft-margin SVM that has been trained on a dataset with
Source diagram or notation
, where
Source diagram or notation
is the hyperparamter that controls the tradeoff between the margin and the hinge loss. Let
Source diagram or notation
be the optimal weight vector. Consider a data-point
Source diagram or notation
in the dataset for which
Source diagram or notation
.
Source diagram or notation
is the slack corresponding to this point and
Source diagram or notation
is the multiplier corresponding to the primal constraint for this point. Based on the above data, answer the given subquestions.
Find the value of
Source diagram or notation
. Enter your answer correct to one decimal place.

A published solution is not available for this question yet.

Report a correction for Q8

Question 9 MSQ · 3.0 marks

Consider a polynomial kernel,
Source diagram or notation
of degree
Source diagram or notation
. Let
Source diagram or notation
. Which of the following is/are true?
A.
If
Source diagram or notation
is an even number, then
Source diagram or notation
for all
Source diagram or notation
.
B.
If
Source diagram or notation
and
Source diagram or notation
are orthogonal, then
Source diagram or notation
.
C.Source diagram or notation
can never be zero.
D.Source diagram or notation
for all
Source diagram or notation
.

A published solution is not available for this question yet.

Report a correction for Q9

Question 10 MSQ · 3.0 marks

Two loss functions are plotted in this graph. What are the two?
Source diagram or notation
A.
Logistic loss
B.
Hinge loss
C.
Squared loss
D.
0-1 loss

A published solution is not available for this question yet.

Report a correction for Q10

Question 11 MSQ · 3.0 marks

Let
Source diagram or notation
be the covariance matrix of a centered dataset with
Source diagram or notation
data-points in
Source diagram or notation
, where
Source diagram or notation
is the data-matrix of shape
Source diagram or notation
. Let
Source diagram or notation
be the
Source diagram or notation
principal component. Which of the following is/are true?
A.Source diagram or notation
is the variance of the dataset along
Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
, for
Source diagram or notation
D.Source diagram or notation
for each
Source diagram or notation
satisfying
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q11

Question 12 NAT · 4.0 marks

Consider the following decision tree for a binary classification problem with features in
Source diagram or notation
and labels in
Source diagram or notation
.
Source diagram or notation
If
Source diagram or notation
denotes the set of all points in
Source diagram or notation
for which the decision tree outputs
Source diagram or notation
as the predicted label, find the area corresponding to the region
Source diagram or notation
. Enter the nearest integer as your answer.

A published solution is not available for this question yet.

Report a correction for Q12

Question 13 NAT · 4.0 marks

Consider a logistic regression classifier trained on a dataset for a binary classification problem with features in
Source diagram or notation
and labels in
Source diagram or notation
. The weight vector learnt by the classifier is
Source diagram or notation
. Given a test data-point
Source diagram or notation
, the probability
Source diagram or notation
, where
Source diagram or notation
is the base of the natural logarithm. Find the value of
Source diagram or notation
and enter the nearest integer as your answer.

A published solution is not available for this question yet.

Report a correction for Q13

Question 14 NAT · 2.0 marks

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

A published solution is not available for this question yet.

Report a correction for Q14

Question 15 NAT · 2.0 marks

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

A published solution is not available for this question yet.

Report a correction for Q15

Question 16 MSQ · 2.0 marks

Consider a linearly separable dataset,
Source diagram or notation
, for a binary classification problem with features in
Source diagram or notation
and labels in
Source diagram or notation
that has a positive margin.
Source diagram or notation
has ten data-points out of which five of them belong to the class
Source diagram or notation
. Assume that all ten data-points occupy distinct locations in
Source diagram or notation
. Let
Source diagram or notation
be the optimal weight vector output by a hard-margin SVM. Consider three subsets of
Source diagram or notation
as given below:
Source diagram or notation
Source diagram or notation
denotes the cardinality of the set. Note that
Source diagram or notation
. Answer the given sub-questions.
Which of the following is/are true?
A.Source diagram or notation
B.Source diagram or notation
C.Source diagram or notation
D.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q16

Question 17 MCQ · 4.0 marks

Consider a dataset with two data-points for a binary classification problem with features in
Source diagram or notation
.
Source diagram or notation
is a data-point from the positive class while
Source diagram or notation
is from the negative class. We now consider three linear classifiers: perceptron, logistic regression and SVM.
Source diagram or notation
Source diagram or notation
If
Source diagram or notation
is the weight vector with the largest margin, which of the following is true?
A.
All three classifiers output
Source diagram or notation
B.
Only SVM outputs
Source diagram or notation
C.
Only SVM and perceptron output
Source diagram or notation
D.
Only perceptron and logistic regression output
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q17

Question 18 MSQ · 4.0 marks

Consider a dataset consisting of
Source diagram or notation
datapoints
Source diagram or notation
, where each
Source diagram or notation
. Let the four features be denoted by
Source diagram or notation
and
Source diagram or notation
.Suppose the features satisfy the following linear relationship:
Source diagram or notation
That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable
Source diagram or notation
using these features. Consider the following statements: Consider the following statements: Which of the following is (are) true?
A.
Linear regression without regularization will achieve training MSE less than or equal to that of ridge regression.
B.
The solution for linear regression without regularization may not be unique.
C.
Ridge regression (L2 regularization) will always set at least one coefficient exactly to zero.
D.
Lasso regression (L1 regularization) can force some feature weights to become exactly zero.

A published solution is not available for this question yet.

Report a correction for Q18