Question: Q.2. Consider the following dataset set containing two features X1 and X2. The output (dependent feature) is denoted by y. a) In which class the

Q.2. Consider the following dataset set containing two features X1 and X2. The output (dependent feature) is denoted by y. a) In which class the data point XI=5,X2=6 will belong to if you use kNN algorithm with k=3 and distance measure as Euclidean distance? b) In which class the data point X1=5,X2=6 will belong to if you use kNN algorithm with k=5 and distance measure as Euclidean distance? c) For which value of k ( 3 or 5 ), kNN algorithm will give minimum leave one out cross validation (LOOCV) accuracy? Justify your answer by calculating LOOCV accuracies. (Marks: 4+4+10=18 )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
