Question: Question 1 . 5 . Define the function three _ classify that takes a row from test as an argument and classifies the row based

Question 1.5. Define the function three_classify that takes a row from test as an argument and classifies the row based on using 3-Nearest Neighbors. Use this function to find the accuracy of a 3-NN classifier on the test set. accuracy should be a proportion (not a percentage) of the schools that were correctly predicted. (10 points)
Hint: You should be using a function you just created!
Note: Usually before using a classifier on a test set, we'd classify first on a "validation" set, which we then can modify our training set again if need be, before actually testing on the test set. You don't need to do that for this question, but you will learn about this more in Data 100.[]: grader.check("q1_5")
Question 1 . 5 . Define the function three _

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!