Q2: KNN Given a weather history as following table: Outlook Temp Humidity Windy Play Sunny Hot Sunny Hot Overcast Hot Rainy Mild Rainy Cool Rainy Cool Overcast Cool Sunny Mild Sunny Cool Rainy Mild Sunny Mild Overcast Mild Overcast Hot Mild Rainy High High False No True No False Yes False Yes Normal False Yes Normal True No Normal True Yes High False No Normal False Yes Normal False Yes Normal True Yes High True Yes Normal Yes False No True High High High Tomorrow's forecast is "Sunny Hot Normal False", should you play or not? Tomorrow's forecast is "Overcast Mild High False", should you play or not? Design your KNN method to solve above two cases.

icon
Related questions
Question

ALert dont submit AI generated answer.

Q2: KNN
Given a weather history as following table:
Outlook Temp Humidity Windy Play
Sunny
Hot
Sunny Hot
Overcast Hot
Rainy
Mild
Rainy
Cool
Rainy
Cool
Overcast Cool
Sunny
Mild
Sunny Cool
Rainy
Mild
Sunny
Mild
Overcast Mild
Overcast Hot
Rainy
Mild
High
False No
High
True
No
High
False
Yes
High
False
Yes
Normal False
Yes
Normal
True
No
Normal
True
Yes
High
False
No
Normal False Yes
Normal
False
Yes
Normal
True Yes
High
True
Yes
Normal False Yes
No
True
High
Tomorrow's forecast is "Sunny Hot Normal False", should you play or not?
Tomorrow's forecast is "Overcast Mild High False", should you play or not?
Design your KNN method to solve above two cases.
Transcribed Image Text:Q2: KNN Given a weather history as following table: Outlook Temp Humidity Windy Play Sunny Hot Sunny Hot Overcast Hot Rainy Mild Rainy Cool Rainy Cool Overcast Cool Sunny Mild Sunny Cool Rainy Mild Sunny Mild Overcast Mild Overcast Hot Rainy Mild High False No High True No High False Yes High False Yes Normal False Yes Normal True No Normal True Yes High False No Normal False Yes Normal False Yes Normal True Yes High True Yes Normal False Yes No True High Tomorrow's forecast is "Sunny Hot Normal False", should you play or not? Tomorrow's forecast is "Overcast Mild High False", should you play or not? Design your KNN method to solve above two cases.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer