Lab3_AnswersTemplate

docx

School

Algonquin College *

*We aren’t endorsed by this school

Course

8390

Subject

Industrial Engineering

Date

Dec 6, 2023

Type

docx

Pages

2

Uploaded by SuperHumanPelicanMaster956

Report
CST8390 - Lab 3 K Nearest Neighbor (kNN) Name: Student Number: 8. a. What is the percentage of correctly classified items? ___94.9438___ b. What are the True Positive (TP) rates of each class? Class 1 – 1.000 Class 2 – 0.873 Class 3 – 1.000 c. Look at the confusion matrix, which class is incorrectly classified? _____Class B___________________________________ 9. Fill in the table. 10. Fill in the table. K Percentage of correctly classified instances Number of instances misclassified in each class 3 94.9438% Class 1:0 Class 2:9 Class 3:0 5 95.5056% 1:0 2:7 3:1 7 94.9438 1:0 2:8 3:1 9 96.0674 1:0 2:6 3:1 11. Repeat step 9 with “Percentage Split” of 70. Fill in the following table. K Percentage of correctly classified instances Number of instances misclassified in each class 3 100% 1:0
2:0 3:0 5 98.1132% 1:0 2:1 3:0 7 100% 1:0 2:0 3:0 9 100% 1:0 2:0 3:0 12. Explanation of the process and the screenshot. First, a random instance was chosen. Using all attribute columns, the distance between each of the other instances and the test instance was calculated using the distance formula. Sorting the data using the calculated distance column, we can find the 5NN of the test instance. The test case is classified as Class 2 using 5NN, making it misclassified as it is actually Class 3.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help