Classification 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…

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…

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…

0/40 correct0 marks

Related topics in Machine Learning