GATE DA Machine Learning Previous Year Questions

28 solved GATE DA questions on Machine Learning, drawn from 3 exam years and grouped by year. Every question shows the official answer and a step-by-step solution.

Want to practise this topic and ask follow-up questions? Explore Success Tracker.

Revision companion

Machine Learning: separate fitting, prediction, and evaluation

State the model, objective, and data split before calculating an update or reporting a score. Training improvement and generalization are different claims. These selected notes connect regression, classification, validation, trees, and unsupervised learning through explicit assumptions and checkable calculations.

Our study notes and original examples support the PYQs below; they are not official exam questions or a replacement for the current syllabus.

Before you start

  • Vectors, matrix products, derivatives, and the chain rule.
  • Conditional probability, sample means, variance, and basic data splitting.

Concepts to revise before solving

Regression objectives and gradient updates

For predictions wx with no intercept, define J(w) = Σ(wxᵢ − yᵢ)²/(2n). Then J′(w) = Σ(wxᵢ − yᵢ)xᵢ/n, and gradient descent subtracts the learning rate times this derivative. A different loss normalization changes the gradient scale, so copy the objective before differentiating.

Check yourself: Are all residuals evaluated at the same current parameter?

Classification decisions and metrics

A probability estimate becomes a class decision only after choosing a threshold. With a stated positive class, precision is TP/(TP + FP), recall is TP/(TP + FN), and accuracy is (TP + TN)/N. Class imbalance can make accuracy high despite poor positive-class detection.

Check yourself: Are your denominators predicted positives or actual positives?

Validation, leakage, and regularization

Fit preprocessing only on training data within each validation split. Select hyperparameters using validation results; reserve untouched test data for final evaluation. Regularization trades training fit against complexity: stronger penalties can reduce variance but increase bias. Training loss alone cannot establish generalization.

Check yourself: Did validation or test information influence the fitted scaler or feature selection?

Decision trees and split criteria

A classification tree evaluates a split using child impurities weighted by their sample fractions. For class proportions pₖ, Gini impurity is 1 − Σpₖ²; a pure node has zero impurity. Compare the weighted child impurity with the parent under the same criterion. Deep trees can memorize training data, so choose depth or pruning settings using validation, not test results.

Check yourself: Did you weight each child impurity by its sample fraction?

Clustering and dimensionality reduction

k-means alternates nearest-centroid assignments with mean updates to reduce within-cluster squared distance; initialization affects the result. PCA finds orthogonal directions of greatest variance in centered data. Neither method uses target labels. Feature scaling changes distances and variance, so it changes what these methods emphasize.

Check yourself: Does the chosen scale reflect meaningful feature comparisons?

Mistakes to avoid

Adding the gradient while trying to minimize a loss.
Subtract the gradient for descent and recompute the stated objective to check the actual step's effect.
Repeatedly tuning against the test set.
Use a validation split or cross-validation for selection; repeated test feedback makes the test set part of tuning.
Computing F1 as the arithmetic mean of precision and recall.
Use their harmonic mean: F1 = 2TP/(2TP + FP + FN), when the denominator is positive.

Original teaching example · not a PYQ

Work through the reasoning

Fit ŷ = wx without intercept or regularization to (1, 1), (2, 3), listed as (x, y). Use J(w) = Σ(wxᵢ − yᵢ)²/(2n) with n = 2. From w = 0, take one full-batch gradient-descent step with learning rate 0.1. Find the new weight and loss.

  1. At w = 0, predictions are both zero and residuals are −1 and −3. Initial loss is (1 + 9)/4 = 2.5.
  2. The derivative averages residual times input: J′(0) = ((−1)(1) + (−3)(2))/2 = −3.5.
  3. Subtract the scaled derivative: w_new = 0 − 0.1(−3.5) = 0.35.
  4. New predictions are 0.35 and 0.70. Recompute J(0.35) = ((−0.65)² + (−2.30)²)/4 = 1.428125, smaller than the initial loss.

Updated weight: 0.35. Updated loss: 1.428125 under the stated 1/(2n) convention.

Try it before reading the answer

For a binary classifier with TP = 12, FP = 3, FN = 4, and TN = 21, find precision, recall, accuracy, and F1 for the positive class.

Show answer and reasoning

Precision = 4/5; recall = 3/4; accuracy = 33/40; F1 = 24/31.

There are 15 predicted positives, 16 actual positives, and 40 observations. Thus precision is 12/15, recall 12/16, and accuracy (12 + 21)/40. The F1 count formula gives 24/(24 + 3 + 4) = 24/31.

Go deeper with free learning resources

Supplemental reading, not an official GATE reading list or an endorsement of these notes.

Apply this to the previous-year questions

Previous-year questions by year

This page shows 28 recent questions from the released archive, newest first. For older questions and complete papers, browse all GATE DA papers. Questions can carry more than one subject tag; counts are not marks weightage.

GATE DA 20269 questions

  1. Set 1 Q11For a classification problem, Principal Component Analysis (PCA) has been used to reduce the dimensionality of a feature space from 100 to 10. Which of the…MCQ · +1 marks · Easy
  2. Set 1 Q12Consider that you are training a classifier for a 10-class classification problem. Each input is represented as a 512-dimensional vector. There are 1000…MCQ · +1 marks · Easy
  3. Set 1 Q23In the following table, the Task column lists a few tasks related to machine learning. The Algorithm column lists a few algorithms. Each entry “t” from the…MSQ · +1 marks · Easy
  4. Set 1 Q29Consider that for a supervised learning task, the objective function being minimized is fw(x)=wxf_w(x) = wx, where xRx \in \mathbb{R} is the input and…NAT · +1 marks · Medium
  5. Set 1 Q36Let four points in three-dimensional space be: P1: [2,3,1][2, 3, -1], P2: [3,1,1][3, 1, 1], P3: [5,2,3][5, -2, 3] and P4: [3,3,3][3, 3, 3]. Hierarchical Agglomerative Clustering…MCQ · +2 marks · Easy
  6. Set 1 Q37Which of the following statements is true for Ridge Regression?MCQ · +2 marks · Easy
  7. Set 1 Q47Consider that 20 stories of Author X and 10 stories of Author Y were kept together without mentioning the names of the authors. A classifier was then asked to…MSQ · +2 marks · Medium
  8. Set 1 Q55Consider that Linear Ridge Regression is being used to learn a prediction function ypred=wTxy_{\text{pred}} = w^T x, where w,xR2w, x \in \mathbb{R}^2 and Mean Absolute…NAT · +2 marks · Medium
  9. Set 1 Q56Consider a fully-connected feed-forward multi-layer perceptron. It has 30 neurons in the input layer, followed by two hidden layers and an output layer. The…NAT · +2 marks · Easy

GATE DA 20259 questions

  1. Set 1 Q22Consider designing a linear classifier y=sign(f(x;w,b)),f(x;w,b)=wx+by = \text{sign}(f(x;w, b)), \quad f(x;w, b) = w^\top x + b on a dataset…MCQ · +1 marks · Medium
  2. Set 1 Q30Let C1C_1 and C2C_2 be two sets of objects. Let D(x,y)D(x, y) be a measure of dissimilarity between two objects xx and yy. Consider the following definitions of…MSQ · +1 marks · Easy
  3. Set 1 Q34Given data {(1,1),(2,5),(3,5)}\{(-1, 1), (2, -5), (3, 5)\} of the form (x,y)(x, y), we fit a model y=wxy = wx using linear least-squares regression. The optimal value of ww is…NAT · +1 marks · Medium
  4. Set 1 Q35The naive Bayes classifier is used to solve a two-class classification problem with class labels y1,y2y_1, y_2. Suppose the prior probabilities are…NAT · +1 marks · Medium
  5. Set 1 Q42Consider the neural network shown in the figure with inputs: u,vu, v weights: a,b,c,d,e,fa, b, c, d, e, f output: yy RR denotes the ReLU function, R(x)=max(0,x)R(x) = \max(0, x).…MCQ · +2 marks · Medium
  6. Set 1 Q48Which of the following statements is/are correct about the rectified linear unit (ReLU) activation function defined as ReLU(x)=max(x,0)\text{ReLU}(x) = \max(x, 0), where…MSQ · +2 marks · Easy
  7. Set 1 Q53Consider designing a linear binary classifier f(x)=sign(wx+b),xR2f(x) = \text{sign}(w^\top x + b), x \in \mathbb{R}^2 on the following training data: Class-1:…MSQ · +2 marks · Medium
  8. Set 1 Q55Consider a two-class problem in Rd\mathbb{R}^d with class labels red and green. Let μred\mu_{red} and μgreen\mu_{green} be the means of the two classes. Given…MSQ · +2 marks · Medium
  9. Set 1 Q60Let D={x(1),,x(n)}D = \{x^{(1)}, \dots, x^{(n)}\} be a dataset of nn observations where each x(i)R100x^{(i)} \in \mathbb{R}^{100}. It is given that…NAT · +2 marks · Medium

GATE DA 202410 questions

  1. Set 1 Q17Consider the dataset with six datapoints: {(x1,y1),(x2,y2),,(x6,y6)}\{(x_1, y_1), (x_2, y_2), \dots, (x_6, y_6)\}, where x1=[10]x_1 = \begin{bmatrix} 1 \\ 0 \end{bmatrix},…MCQ · +1 marks · Medium
  2. Set 1 Q18Match the items in Column 1 with the items in Column 2 in the following table: | Column 1 | Column 2 | |---|---| | (p) Principal Component Analysis |…MCQ · +1 marks · Easy
  3. Set 1 Q19Euclidean distance based kk-means clustering algorithm was run on a dataset of 100 points with k=3k = 3. If the points [11]\begin{bmatrix} 1 \\ 1 \end{bmatrix}MCQ · +1 marks · Medium
  4. Set 1 Q20Given a dataset with KK binary-valued attributes (where K>2K > 2) for a two-class classification task, the number of parameters to be estimated for learning a…MCQ · +1 marks · Medium
  5. Set 1 Q22For any binary classification dataset, let SBRd×dS_B \in \mathbb{R}^{d \times d} and SWRd×dS_W \in \mathbb{R}^{d \times d} be the between-class and within-class…MCQ · +1 marks · Medium
  6. Set 1 Q42Consider the table below, where the (i,j)th(i, j)^{th} element of the table is the distance between points xix_i and xjx_j. Single linkage clustering is performed…MCQ · +2 marks · Medium
  7. Set 1 Q43Consider the two neural networks (NNs) shown in Figures 1 and 2, with ReLUReLU activation (ReLU(z)=max{0,z},zRReLU(z) = \max\{0, z\}, \forall z \in \mathbb{R}). R\mathbb{R}MCQ · +2 marks · Medium
  8. Set 1 Q53Consider the following figures representing datasets consisting of two-dimensional features with two classes denoted by circles and squares. [figure] Which of…MSQ · +2 marks · Easy
  9. Set 1 Q62Details of ten international cricket games between two teams "Green" and "Blue" are given in Table C. This table consists of matches played on different…NAT · +2 marks · Medium
  10. Set 1 Q63Given the two-dimensional dataset consisting of 5 data points from two classes (circles and squares) and assume that the Euclidean distance is used to measure…NAT · +2 marks · Medium

Other GATE DA topics

Continue learning with Success Tracker

Keep working on Machine Learning

Reading a solution is a useful start. In Success Tracker, you can attempt questions yourself, review mistakes and return to the topics that need another pass.

AI-powered practice· Unlimited practice on eligible plans
PYQs with solutions
Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
Practice that adapts
Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
AI doubt support
Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.

Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.

This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.