Laboratory Assignment #4:
The standard K-nearest neighbor method can be found
in the ‘lazy’ submenu of the list presented when you click ‘Choose’ in
Explorer’s Classify window. It is called ‘IBk’. Select this and then click on
IBk so you can modify the parameters. The default value of k is 1. Set it to 3
(or other value of your preference) and then click Start to run the programs.
What is the output? How many
instances did it classify correctly and how many incorrectly?
·
Try changing the parameter K – the number of
neighbors. Did that influence the model’s performance?
·
Try using different weighting schemes. Did does this change influence the model’s
performance?
What % of examples are correctly classified? Compare
the result to the same result of the unpruned decision tree procedure. Try
investigating the effect of repeating the run with different values for k. Compare and contrast the 2 methods and their
outputs.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
30 | 31 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 1 | 2 | 3 |
Get Free Quote!
449 Experts Online