ML Study Hub

Home / Past papers / MLT End Term / this paper

Machine Learning Techniques 06 May 26 - 10 May 2026

MLT End Term17 questions50 marks9 SA · 5 MSQ · 3 MCQ
Elapsed 00:00
Q1SA3 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?
Q2SA3 marks
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.
Q3SA3 marks
question figure
Q4MCQ3 marks
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?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MCQ3 marks
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? question figure
  1. Hard-margin, Linear SVM
  2. Hard-margin, Kernel SVM, with a suitable kernel
  3. Soft-margin, Linear SVM
  4. Soft-margin, Kernel SVM, with a suitable kernel
Comprehension passage - the questions below it refer to this
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.
Q6SA2 marks
Find the value of . Enter your answer correct to one decimal place.
Q7SA2 marks
Find the value of . Enter your answer correct to one decimal place.
Q8MSQ3 marksselect all that apply
Consider a polynomial kernel, of degree . Let . Which of the following is/are true?
  1. If is an even number, then for all .
  2. If and are orthogonal, then .
  3. can never be zero.
  4. for all .
Q9MSQ3 marksselect all that apply
Two loss functions are plotted in this graph. What are the two? question figure
  1. Logistic loss
  2. Hinge loss
  3. Squared loss
  4. 0-1 loss
Q10MSQ3 marksselect all that apply
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?
  1. is the variance of the dataset along
  2. question figure
  3. , for
  4. for each satisfying
Q11SA4 marks
Consider the following decision tree for a binary classification problem with features in and labels in . question figure 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.
Q12SA4 marks
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 question figure , where is the base of the natural logarithm. Find the value of and enter the nearest integer as your answer.
Comprehension passage - the questions below it refer to this
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: question figure denotes the cardinality of the set. Note that . Answer the given sub-questions.
Q13SA2 marks
What is ? If you cannot compute this value with the given information, enter as the answer.
Q14SA2 marks
What is ? If you cannot compute this value with the given information, enter as the answer.
Q15MSQ2 marksselect all that apply
Which of the following is/are true?
Q16MCQ4 marks
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. question figure If is the weight vector with the largest margin, which of the following is true? question figure
  1. All three classifiers output
  2. Only SVM outputs
  3. Only SVM and perceptron output
  4. Only perceptron and logistic regression output
Q17MSQ4 marksselect all that apply
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?
  1. Linear regression without regularization will achieve training MSE less than or equal to that of ridge regression.
  2. The solution for linear regression without regularization may not be unique.
  3. Ridge regression (L2 regularization) will always set at least one coefficient exactly to zero.
  4. Lasso regression (L1 regularization) can force some feature weights to become exactly zero.

Answer key

  1. Q1 (SA, 3 marks): 11
  2. Q2 (SA, 3 marks): 1230
  3. Q3 (SA, 3 marks): 0.71 to 0.73
  4. Q4 (MCQ, 3 marks): C
  5. Q5 (MCQ, 3 marks): D
  6. Q6 (SA, 2 marks): 0.3
  7. Q7 (SA, 2 marks): 0.5
  8. Q8 (MSQ, 3 marks): A, D
  9. Q9 (MSQ, 3 marks): A, B
  10. Q10 (MSQ, 3 marks): A, C
  11. Q11 (SA, 4 marks): 10
  12. Q12 (SA, 4 marks): 2
  13. Q13 (SA, 2 marks): 0
  14. Q14 (SA, 2 marks): 10
  15. Q15 (MSQ, 2 marks): B, D
  16. Q16 (MCQ, 4 marks): A
  17. Q17 (MSQ, 4 marks): A, B, D