Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. normalise the data using the z-score normalisation (For the purpose of this exercise, please use all data to compute the and required for the

1. normalise the data using the z-score normalisation (For the purpose of this exercise, please use all data to compute the and required for the normalisation. Keep in mind, however, that in reality you have to use only the training data to compute and the input for the future predictions will typically not yet be available to you!) 2. Use the k-Nearest Neighbours method with k = 3 to predict the missing classes. Use the Euclidean norm in your distance calculations. Note: When making predictions, you need to transform the input data for the pre- dictions using the same mu and as for the transformation of the training data in (1).

image text in transcribed

Petal Length Petal width Class 1.7 virginica 5.8 1.5 0.3 setosa 4.9 2.1 virginica versicolor 4.6 1.3 0.3 setosa 1.4 6.2 2.4 1.4 4.5 5.8 2.4 versicolor versicolor versicolor ? ? ? 6.1 2.2 1.2 0.3 6.1 2.2 4.6 1.4 1.4 0.2 1.2 0.4 ? Petal Length Petal width Class 1.7 virginica 5.8 1.5 0.3 setosa 4.9 2.1 virginica versicolor 4.6 1.3 0.3 setosa 1.4 6.2 2.4 1.4 4.5 5.8 2.4 versicolor versicolor versicolor ? ? ? 6.1 2.2 1.2 0.3 6.1 2.2 4.6 1.4 1.4 0.2 1.2 0.4

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

The Continuing Debate Over Depreciation Capital And Income

Authors: Richard P. Brief

1st Edition

0415707889, 9780415707886

Students also viewed these Databases questions