Example: biology
An Introduction to the WEKA Data Mining System
Distance(test,X) 1 2 2 2 2 … 4 X 2 8 9 11 12 … 10 • K-nearest neighbor (KNN, IBk) Take the class of the nearest neighbor or the majority class among K neighbors K=1 -> no K=3 -> no K=5 -> yes K=14 -> yes (Majority predictor, ZeroR) • Distance is calculated as the number of different attribute values • Euclidean distance for numeric ...
Download An Introduction to the WEKA Data Mining System
15
Information
Domain:
Source:
Link to this page: