Question: a. Make up a set of three records, each with two numeric predictor variables and one categorical target variable, so that the classification would not
a. Make up a set of three records, each with two numeric predictor variables and one categorical target variable, so that the classification would not change regardless of the value of k.
b. Refer to Exercise a. Alter your data set so that the classification changes for different values of k.
c. Refer to Exercise b. Find the Euclidean distance between each pair of points. Using these points, verify that Euclidean distance is a true distance metric.
Note:
Topic: k-NEAREST NEIGHBORALGORITHM
Book: Discovering Knowledge in Data: An Introduction to Data Mining (Second Edition).
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
The exanple set of three recods are shoum Belorw Recold Age NaK Age cadegory New 18 135 ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
635db2b5d1bff_178105.pdf
180 KBs PDF File
635db2b5d1bff_178105.docx
120 KBs Word File
