Quiz Space

Machine Learning Techniques · Quiz 2 · 1 Dec 2024 · September 2024 term

Question 6: Consider the following feature vectors in \mathbb{R}^3: x…

Question 6

+4 marksNumerical answer

Consider the following feature vectors in R3\mathbb{R}^3:

x1=[123],x2=[−1−20],x3=[301],x4=[014],x5=[2−1−3]x_1 = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}, \quad x_2 = \begin{bmatrix} -1 \\ -2 \\ 0 \end{bmatrix}, \quad x_3 = \begin{bmatrix} 3 \\ 0 \\ 1 \end{bmatrix}, \quad x_4 = \begin{bmatrix} 0 \\ 1 \\ 4 \end{bmatrix}, \quad x_5 = \begin{bmatrix} 2 \\ -1 \\ -3 \end{bmatrix}

The labels of these points are:

y1=0,y2=1,y3=1,y4=0,y5=1y_1 = 0, \quad y_2 = 1, \quad y_3 = 1, \quad y_4 = 0, \quad y_5 = 1

If we use a kk-NN algorithm with k=3k = 3, what would be the predicted label for the following test point:

xtest=[112]x_{test} = \begin{bmatrix} 1 \\ 1 \\ 2 \end{bmatrix}

Show answer

Correct answer: 0

Question 6 of 15 in the IIT Madras BS Machine Learning Techniques (MLT) Quiz 2 paper sat on 1 Dec 2024, in the September 2024 term (IIT M DIPLOMA AN EXAM QDD2 01 Dec 2024). It carries 4 marks.

More questions from this paper

  1. Q1Kernel regression with a polynomial kernel is applied on the following dataset with two features: X = \begin{bmatrix} 1…
  2. Q2Kernel regression with a polynomial kernel is applied on the following dataset with two features: X = \begin{bmatrix} 1…
  3. Q3A binary classification dataset has 2000 data points belonging to {0,1}^2. A Naive Bayes algorithm was run on the same …
  4. Q4A binary classification dataset has 2000 data points belonging to {0,1}^2. A Naive Bayes algorithm was run on the same …
  5. Q5Figure question
  6. Q7Suppose you want to use a Naive Bayes classifier to predict whether a student will pass or fail an exam based on two fe…
  7. Q8Select all true statements.
  8. Q9What is the minimum number of misclassifications that can occur in the training dataset when using this k-NN algorithm?
  9. Q10Assuming there are outliers, the decision boundary becomes smoother with decreasing value of k in a k-NN algorithm.
  10. Q11Based on the above data, answer the given subquestions.
  11. Q12Consider the Bayesian formulation of the linear regression problem, where the prior for w is assumed to be w \sim \text…
  12. Q13Do you have enough information to find the entropy of this node?
  13. Q14If the answer to the previous question is ”Yes,” calculate the entropy of this node to three decimal places. If the ans…
  14. Q15Figure question