Question



2.8.4 Exercises for Subsection 2.5.5

Professor,

I am having a hard time understanding exactly what you want us to do for the K-nearest Neighbors portion of our assignment due 3/23

Are we supposed to run the KNN code from class/the textbook on the df_new data?

Thanks





Answers and follow-up questions





Answer or follow-up question 1

Dear student,

Please implement the four steps in the first couple of paragraphs of the KNN section in the book.

It starts as follows:
For each new i, compute the Euclidean distance with all training samples, ...

Michel Ballings


Answer or follow-up question 2

would tenure be x1 and spend be x2 for computing the dissimilarity?




Sign in to be able to add an answer or mark this question as resolved.