written 2.7 years ago by | • modified 2.7 years ago |
Apply KNN classification on the following dataset and predict the quality of paper_5 having Acid Durability = 3 and Strength = 7 for K= 3 (Nearest Neighbor).
The data from a survey and objective testing with two attributes (Acid durability and Strength) can be used to classify whether the quality of the sample paper is good or bad.
The below table shows four training samples
Sample Paper | Acid Durability | Strength | Quality |
---|---|---|---|
Paper_1 | 7 | 7 | Bad |
Paper_2 | 7 | 4 | Bad |
Paper_3 | 3 | 4 | Good |
Paeper_4 | 1 | 4 | Good |
Now consider a new sample paper called Paper_5 that passes laboratory tests with Acid Durability = 3 and Strength = 7.
Without any expensive survey find out the quality of this new paper by using the KNN classifier.