Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. (15 marks) Use MatLAB to implement a KNN classifier. For K=3, use the classifier to determine (Outlook Rain, Temperature Hot, HumidityHigh, WindWeak, PlayTennis =?)memmgleqlgtennls.

image text in transcribedimage text in transcribedimage text in transcribed
1. (15 marks) Use MatLAB to implement a KNN classifier. For K=3, use the classifier to determine (Outlook Rain, Temperature Hot, HumidityHigh, WindWeak, PlayTennis =?)memmgleqlgtennls. Day Outlook Temperature Humidity Wind PIayTennis D1 Sunny Hot High Weak No D2 Sunny Hot High Strong No D3 Overcast Hot High Weak Yes D4 Rainy Mild High Weak Yes D5 Rainy Cool Normal Weak Yes DB Rainy Cool Normal Strong No D? Overcast Cool Normal Strong Yes DB Sunny Mild High Weak No DB Sunny Cool Normal Weak Yes D10 Rainy Mild Normal Weak Yes D11 Sunny Mild Normal Strong Yes D12 Overcast Mild High Strong Yes D13 Overcast Hot Normal Weak Yes D14 Rainy Mild High Strong No Day Outlook Temperature Humidity Wind PIayTennis D3 Overcast Hot High Weak Yes D4 Rainy Mild High Weak Yes D5 Rainy Cool Normal Weak Yes D? Overcast Cool Normal Strong Yes DB Sunny Cool Normal Weak Yes D10 Rainy Mild Normal Weak Yes D11 Sunny Mild Normal Strong Yes D12 Overcast Mild High Strong Yes D13 Overcast Hot Normal Weak Yes D14 Rainy Mild High Strong No Day Outlook Temperature Humidity Wind Play Tennis D1 Sunny Hot High Weak No D2 Sunny Hot High Strong No D6 Rainy Cool Normal Strong No D8 Sunny Mild High Weak No D14 Rainy Mild High Strong No

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

Mathematical Interest Theory

Authors: Leslie Jane, James Daniel, Federer Vaaler

3rd Edition

147046568X, 978-1470465681

More Books

Students also viewed these Mathematics questions

Question

10. What is your opinion of the right-to-die issue (Box 8.5)? Why?

Answered: 1 week ago