1
12kviews
K-Nearest-Neighbor (KNN) Classifier Problem.

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.

1 Answer
0
2.3kviews

K-Nearest-Neighbor (KNN) Classifier Problem

Step 1

First, Number of parameters K = Number of nearest neighbors.

Therefore, from the given data K = 3


Step 2

Calculate the distance between the query instance and all the training samples.

Here query instance is (3,7) and calculates the distance by using the …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.