Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started