Question: When using the k-nearest-neighbors algorithm with k = 4, you find that three of the neighbors have a predictor variable value of yes while one
When using the k-nearest-neighbors algorithm with k = 4, you find that three of the neighbors have a predictor variable value of yes while one of the neighbors has a predictor variable value of no. What is your prediction for the new records outcome?
Multiple Choice
Yes, because the majority of the neighbors had this value.
No, because the majority of the neighbors had this value.
No, because a single negative outcome outweighs the positive.
Yes, because all the neighbors had this value.
It is impossible to predict unless all neighbors have the same value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
