Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

Students also viewed these Databases questions

Question

122. If X is distributed as N(0, 1), find the pdf of .

Answered: 1 week ago

Question

Explain the factors influencing wage and salary administration.

Answered: 1 week ago

Question

Examine various types of executive compensation plans.

Answered: 1 week ago

Question

1. What is the meaning and definition of banks ?

Answered: 1 week ago

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago