Page 19 - Data Science Algorithms in a Week
P. 19
Classification Using K Nearest Neighbors
Suppose we would like to know when Mary feels warm and when she feels cold, as in the
previous example, but in addition, wind speed data is also available when Mary was asked
if she felt warm or cold:
Temperature in degrees Celsius Wind speed in km/h Mary's perception
10 0 Cold
25 0 Warm
15 5 Cold
20 3 Warm
18 7 Cold
20 10 Cold
22 5 Warm
24 6 Warm
We could represent the data in a graph, as follows:
[ 7 ]