Machine Learning questions

Q22

GATE DA 2025 DAClassificationMCQ1 mark−1/3 if wrong

Report a problem with Q22

What is wrong?
Consider designing a linear classifier
y=sign(f(x;w,b)),f(x;w,b)=w⊤x+by = \text{sign}(f(x;w, b)), \quad f(x;w, b) = w^\top x + b
on a dataset D={(x1,y1),(x2,y2),…,(xN,yN)},xi∈Rd,yi∈{+1,−1},i=1,2,…,ND = \{(x_1, y_1), (x_2, y_2), \ldots, (x_N, y_N)\}, x_i \in \mathbb{R}^d, y_i \in \{+1, -1\}, i = 1, 2, \ldots, N. Recall that the sign function outputs +1+1 if the argument is positive, and −1-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_nx_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
Show answer without attempting

Loading the answer…

Q30

GATE DA 2025 DAClusteringMSQ1 mark

Report a problem with Q30

What is wrong?
Let 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 dissimilarity between C1C_1 and C2C_2.
DIS-1(C1,C2)=max⁡x∈C1,y∈C2D(x,y)\text{DIS-1}(C_1, C_2) = \max_{x \in C_1, y \in C_2} D(x, y)
DIS-2(C1,C2)=min⁡x∈C1,y∈C2D(x,y)\text{DIS-2}(C_1, C_2) = \min_{x \in C_1, y \in C_2} D(x, y)
Which of the following statements is/are correct?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q34

GATE DA 2025 DARegressionNAT1 mark

Report a problem with Q34

What is wrong?
Given 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 __________ (Round off to three decimal places)
Show answer without attempting

Loading the answer…

Q35

GATE DA 2025 DAClassificationNAT1 mark

Report a problem with Q35

What is wrong?
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)
Show answer without attempting

Loading the answer…

Q42

GATE DA 2025 DANeural NetworksMCQ2 marks−2/3 if wrong

Report a problem with Q42

What is wrong?
Consider 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).

Given u=2,v=3u = 2, v = 3,
a=1,b=1,c=1,d=−1,e=4,f=−1a = 1, b = 1, c = 1, d = -1, e = 4, f = -1,
which one of the following is correct?
Question figure
Show answer without attempting

Loading the answer…

Q53

GATE DA 2025 DAClassificationMSQ2 marks

Report a problem with Q53

What is wrong?
Consider designing a linear binary classifier f(x)=sign(w⊤x+b)f(x) = \text{sign}(w^\top x + b), x∈R2x \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?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q55

GATE DA 2025 DAClassificationMSQ2 marks

Report a problem with Q55

What is wrong?
Consider a two-class problem in Rd\mathbb{R}^d with class labels red and green. Let μred\mu_{\text{red}} and μgreen\mu_{\text{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_{\text{red}} - x\|^2 - \|\mu_{\text{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?
More than one option can be correct.
Show answer without attempting

Loading the answer…

Q60

GATE DA 2025 DADimensionality ReductionNAT2 marks

Report a problem with Q60

What is wrong?
Let D={x(1),…,x(n)}D = \{x^{(1)}, \ldots, x^{(n)}\} be a dataset of nn observations where each x(i)∈R100x^{(i)} \in \mathbb{R}^{100}. It is given that ∑i=1nx(i)=0\sum_{i=1}^n x^{(i)} = 0. The covariance matrix computed from DD has eigenvalues λi=1002−i,1≤i≤100\lambda_i = 100^{2-i}, 1 \le i \le 100. Let u∈R100u \in \mathbb{R}^{100} be the direction of maximum variance with u⊤u=1u^\top u = 1. The value of 1n∑i=1n(u⊤x(i))2=\frac{1}{n} \sum_{i=1}^n \left(u^\top x^{(i)}\right)^2 = __________ (Answer in integer)
Show answer without attempting

Loading the answer…

0/80 correct0 marks

Related topics in GATE DA