Question: Using K-Nearest Neighbor Algorithm, Classify the new instance. (5 marks) a. Find in which class of people Angelina will be. b. Male is denoted with

Using K-Nearest Neighbor Algorithm, Classify the new instance. (5 marks)

a. Find in which class of people Angelina will be.

b. Male is denoted with a numeric value of 0 and female with 1.

c. Angelinas age is 5, and she is female which is denoted with a value of 1.

d. The K factor is 5.

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

d=((age2-age1)+(gender2-gender1))

Distance equation: d=((x2-x1)+(y2-y1))

Please use your keyboard.

Thank you

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 Databases Questions!