Classification: GATE DA Previous Year Questions

Classification · Machine Learning

11 questions · asked in 3 of 3 years (2024–2026)

MCQ 4 · MSQ 4 · NAT 31-mark 5 · 2-mark 6

2024Questions per year2026

Questions 1–5 of 11

Q1GATE 20262 marksMSQ
Consider that 2020 stories of Author X\text{X} and 1010 stories of Author Y\text{Y} were kept together without mentioning the names of the authors. A\text{A} classifier was then asked to predict the author ( X or Y )\text{( X or Y )} of each of these stories. Let, out of X\text{X} 's stories, 66 were classified as that of Y\text{Y}. On the other hand, out of Y\text{Y}'s stories, 22 were classified as that of X\text{X}.

Considering X\text{X} and Y\text{Y} as two classes, which of the following statements is/are true?

One or more options are correct.

Q2GATE 20251 markMCQ−0.33 if wrong
Consider designing a linear classifier

y=sign(f(x;w,b)),f(x;w,b)=wTx+by = \text{sign}(f(x; w, b)), \quad f(x; w, b) = w^T x + b

on a dataset D={(x1,y1),(x2,y2),…,(xN,yN)}D = \{(x_1, y_1), (x_2, y_2), \dots, (x_N, y_N)\}, xi∈Rd,yi∈{+1,−1},i=1,2,…,Nx_i \in \mathbb{R}^d, y_i \in \{+1, -1\}, i = 1, 2, \dots, N. Recall that the sign function outputs +1 if the argument is positive, and −1 if the argument is non-positive. The parameters ww and bb are updated as per the following training algorithm:

wnew=wold+ynxn,bnew=bold+ynw_{\text{new}} = w_{\text{old}} + y_n x_n, \quad b_{\text{new}} = b_{\text{old}} + y_n

whenever sign(f(xn;wold,bold))≠yn\text{sign}(f(x_n; w_{\text{old}}, b_{\text{old}})) \neq y_n. In other words, whenever the classifier wrongly predicts a sample (xn,yn)(x_n, y_n) from the dataset, woldw_{\text{old}} gets updated to wneww_{\text{new}}, and likewise boldb_{\text{old}} gets updated to bnewb_{\text{new}}. Consider the case (xn,+1)(x_n, +1), f(xn;wold,bold)<0f(x_n; w_{\text{old}}, b_{\text{old}}) < 0. Then

Q3GATE 20251 markNAT
The 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 P(y1)=13P(y_1) = \frac{1}{3} and P(y2)=23P(y_2) = \frac{2}{3}. Assuming a discrete feature space with

P(x∣y1)=34andP(x∣y2)=14P(x|y_1) = \frac{3}{4} \quad \text{and} \quad P(x|y_2) = \frac{1}{4}

for a specific feature vector xx. The probability of misclassifying xx is _______ (Round off to two decimal places)

Q4GATE 20252 marksMSQ
Consider designing a linear binary classifier f(x)=sign(wTx+b),x∈R2f(x) = \text{sign}(w^T x + b), x \in \mathbb{R}^2 on the following training data:

Class-1: {(20),(02),(22)}\left\{ \begin{pmatrix} 2 \\ 0 \end{pmatrix}, \begin{pmatrix} 0 \\ 2 \end{pmatrix}, \begin{pmatrix} 2 \\ 2 \end{pmatrix} \right\}, Class-2: {(00)}\left\{ \begin{pmatrix} 0 \\ 0 \end{pmatrix} \right\}

Hard-margin support vector machine (SVM) formulation is solved to obtain ww and bb. Which of the following options is/are correct?

One or more options are correct.

Q5GATE 20252 marksMSQ
Consider 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 test sample x∈Rdx \in \mathbb{R}^d, a classifier calculates the squared Euclidean distance (denoted by ∥⋅∥2\|\cdot\|^2) between xx and the means of the two classes and assigns the class label that the sample xx is closest to. That is, the classifier computes

f(x)=∥μred−x∥2−∥μgreen−x∥2f(x) = \|\mu_{red} - x\|^2 - \|\mu_{green} - x\|^2

and assigns the label red to xx if f(x)<0f(x) < 0, and green otherwise. Which of the following statements is/are correct?

One or more options are correct.

Keep practising

Topics in Machine Learning

All DA topics ›